A Material UI components crafted from the most popular UI Framework of React. Make Hybrid apps that runs on DroidScript and EnjineIO using these controls.
Example - UI Theme
class Main extends App
{
onStart()
{
this.main = ui.addLayout( "main", "Linear", "VCenter,FillXY" )
this.main.setChildMargins(0, "20px", 0, "20px")
this.apb = ui.addAppBar( this.main, "My App", "menu" )
this.search = ui.addButton(this.apb.layout, "search", "icon")
this.more = ui.addButton(this.apb.layout, "more_vert", "icon")
ui.addText(this.main, "This is a text control.")
this.btn = ui.addButton(this.main, "Toggle Theme", "", 0.7)
this.btn.setOnTouch( this.changeTheme )
this.btn = ui.addButton(this.main, "Set Primary", "Primary", 0.7)
this.btn.setOnTouch( this.changePrimary )
this.btn = ui.addButton(this.main, "Set Secondary", "Secondary", 0.7)
this.btn.setOnTouch( this.changeSecondary )
this.fab = ui.addFAB(this.main, "add", "secondary")
}
changeTheme() {
ui.setTheme( ui.theme.dark ? "light" : "dark")
}
changePrimary() {
ui.showColorPicker(null, null, function(value) {
ui.setThemeColor(value)
})
}
changeSecondary() {
ui.showColorPicker(null, null, function(value) {
ui.setThemeColor(null, value)
})
}
}