multiselect

This commit is contained in:
lxsang
2020-02-28 18:59:41 +01:00
parent 0de9f88dcf
commit 5d987f8fb6
2 changed files with 28 additions and 6 deletions

View File

@ -50,7 +50,7 @@ class ShowCase extends this.OS.GUI.BaseApplication
</afx-hbox>
<afx-resizer data-height="5" />
<afx-hbox>
<afx-list-view data-id="list" />
<afx-list-view data-id="list" multiselect="true" />
</afx-hbox>
<afx-hbox data-height="150">
<div>box center 3</div>
@ -90,6 +90,9 @@ class ShowCase extends this.OS.GUI.BaseApplication
{ text: "some thing 4" },
{ text: "some thing 5" }
]
list[0].set "onlistselect", (e) ->
console.log(e.items)
ShowCase.singleton = true
this.OS.register "ShowCase", ShowCase