This commit is contained in:
Xuan Sang LE
2018-04-14 17:10:58 +00:00
parent 2d7acf3f35
commit 10a0225fbf
7 changed files with 37 additions and 6 deletions

View File

@ -17,3 +17,12 @@ afx-app-window[data-id="LuaPlayground"] afx-resizer{
background-color: #2f3129;
border-right: 0;
}
afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] {
background-color:#2f3129;
}
afx-app-window[data-id="LuaPlayground"] afx-hbox[data-id="bottom-vbox"] afx-button button{
background-color:#2f3129;
color:white;
border:0;
border-radius: 0;
}

View File

@ -23,7 +23,13 @@
this.on("vboxchange", function() {
return me.editor.resize();
});
return this.socket = null;
(this.find("log-clear")).set("onbtclick", function(e) {
return me.log("clean");
});
this.socket = null;
return this.bindKey("CTRL-R", function() {
return me.run();
});
}
menu() {

View File

@ -1,7 +1,10 @@
<afx-app-window apptitle="Lua Playground" width="500" height="450" data-id="LuaPlayground">
<afx-vbox >
<div data-id="editorea"></div>
<afx-resizer data-height="5"></afx-resizer>
<afx-resizer data-height="1"></afx-resizer>
<afx-hbox data-height="20" data-id="bottom-vbox">
<afx-button data-id = "log-clear" data-width="25" iconclass="fa fa-trash"></afx-button>
</afx-hbox>
<div data-id="output"></div>
</afx-vbox>
</afx-app-window>