fix bug and add afx-nspinner widget

This commit is contained in:
Xuan Sang LE
2018-09-13 20:14:12 +02:00
parent 7659438138
commit aec5457a31
9 changed files with 134 additions and 9 deletions

View File

@ -35,7 +35,7 @@ class BuildDialog extends this.OS.GUI.BasicDialog
{
text: "+",
onbtclick: (e) ->
d.selectFile ["text/coffeescript"], (f) ->
d.selectFile ["text/.*coffeescript"], (f) ->
lv.push { text: f }, true if f
},
{

View File

@ -262,7 +262,7 @@ class AntOSDK extends this.OS.GUI.BaseApplication
{
path: "#{rpath}/assets/scheme.html",
content: """
<afx-app-window apptitle="" width="600" height="500" data-id="#{n}">
<afx-app-window apptitle="#{n}" width="600" height="500" data-id="#{n}">
<afx-hbox ></afx-hbox>
</afx-app-window>
"""

View File

@ -6,7 +6,7 @@
"author": "Xuan Sang LE",
"email": "xsang.le@gmail.com"
},
"version":"0.0.3-a",
"version":"0.0.4-a",
"category":"System",
"iconclass":"fa fa-cubes",
"mimes":[

View File

@ -74,7 +74,7 @@ class DummyApp extends this.OS.GUI.BaseApplication
(@find "sw").set "onchange", (e) ->
console.log e, ((self.find "sw").get "swon")
tree.set "data",tdata
(@find "spinner").set "onchange", (e) -> console.log e
list = @find "mylist"
ldata = [
{text:"some thing with avery long text"},

View File

@ -9,7 +9,8 @@
</afx-vbox>
<afx-resizer data-width = "5" ></afx-resizer>
<afx-vbox>
<afx-button data-height="30" text="__(Read more)" iconclass="fa fa-camera-retro fa-lg" id="button"></afx-button>
<afx-nspinner value = "10" data-height="30" data-id="spinner"></afx-nspinner>
<afx-button data-height="30" toggle = "true" text="__(Read more)" iconclass="fa fa-camera-retro fa-lg" id="button"></afx-button>
<afx-switch data-id="sw" enable= true data-height="30"></afx-switch>
<afx-calendar-view></afx-calendar-view>
<afx-resizer data-height = "5" ></afx-resizer>