开发者

deselect items in a list dashcode

开发者 https://www.devze.com 2023-03-17 08:33 出处:网络
i\'m currently struggling how to deselect a item in list, when pressing the back button. So ho开发者_JAVA百科w can set the selection state when returning to the previous view.

i'm currently struggling how to deselect a item in list, when pressing the back button. So ho开发者_JAVA百科w can set the selection state when returning to the previous view.

Thanks in advance.

Cheers

Simon


This will select the first item in the list. As lists allow multiple selections you need to pass an array. I am not sure how you deselect the list entirely.

document.getElementById("list").object.setSelectionIndexes([0]);
0

精彩评论

暂无评论...
验证码 换一张
取 消