mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-12-27 01:38:21 +01:00
add tree-view
This commit is contained in:
parent
9924c642c5
commit
64f055e7ce
@ -145,12 +145,12 @@ class TreeViewTag extends Ant.OS.GUI.BaseTag
|
||||
|
||||
__selectedItem__: (v) ->
|
||||
return unless v
|
||||
@get("selectedItem").set "selected", false if @get("selectedItem")
|
||||
v.set "selected", true
|
||||
|
||||
itemclick: (e, flag) ->
|
||||
return unless e and e.item
|
||||
return if e.item is @get("selectedItem") and not flag
|
||||
@get("selectedItem").set "selected", false if @get("selectedItem")
|
||||
@set "selectedItem", e.item
|
||||
evt = { id: @aid(), data: e }
|
||||
if flag
|
||||
|
Loading…
Reference in New Issue
Block a user