add float list

This commit is contained in:
Xuan Sang LE 2018-01-26 00:23:32 +01:00
parent 15f1fb45eb
commit ec09e07eb7
3 changed files with 12 additions and 2 deletions

View File

@ -10,7 +10,7 @@
self.root.observable = opts.observable || riot.observable() self.root.observable = opts.observable || riot.observable()
self.view = opts.view || 'list' self.view = opts.view || 'list'
self.data = opts.data || [] self.data = opts.data || []
self.path = opts.path || "os://" self.path = opts.path || "home:///"
self.onfileselect self.onfileselect
this.status = opts.status == undefined?true:opts.status this.status = opts.status == undefined?true:opts.status
this.selectedFile = undefined this.selectedFile = undefined

View File

@ -0,0 +1,8 @@
<afx-float-list>
<div>
</div>
<script>
</script>
</afx-float-list>

View File

@ -14,7 +14,9 @@ class Calendar extends this.OS.GUI.BaseService
me.update() me.update()
awake: (e) -> awake: (e) ->
@.openDialog "CalendarDialog", (d) -> console.log d @.openDialog "CalendarDialog", (d) ->
console.log d
, "Calendar"
# do nothing # do nothing
cleanup: (evt) -> cleanup: (evt) ->
console.log "cleanup for quit" console.log "cleanup for quit"