1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
define.class('$ui/view', function(require, $$, dialog, $ui$, textbox,view, icon, treeview, cadgrid, label, button, $$, ballbutton, $widgets$, markdown){
this.bgcolor = vec4(0,0,0,0.5);
this.render =function(){
return dialog({title:"About Flowgraph", position:"relative"},
view({bgcolor:NaN, flexdirection:"column", padding:20 },
markdown({fontcolor:"white", margin:10,bgcolor:NaN, body:"# About Flowgraph!\nThis text needs to be written.."}),
view({flexdirection:"row",bgcolor:NaN, alignitems: "flex-end", justifycontent:"flex-end", alignself:"flex-end" },
button({padding:10, text:"Close", icon:"check", click: function(){this.screen.closeModal(true);} })
)
)
);
}
})
|