Show a DateTimePicker where the user can select a date and time.
Example - DateTimePicker
class Main extends App
{
onStart()
{
this.main = ui.addLayout( "main", "Linear", "VCenter", 1, 1 )
this.btn = ui.addButton( this.main, "Show Date Time Picker", "Primary" )
this.btn.setOnTouch( this.btn_onTouch )
}
btn_onTouch()
{
ui.showDateTimePicker( this.onDateTime )
}
onDateTime( val )
{
ui.showPopup( val )
}
}
from hybrid import ui
def OnStart():
main = ui.addLayout("main", "Linear", "VCenter", 1, 1)
btn = ui.addButton(main, "Show Date Time Picker", "Primary")
btn.setOnTouch(btn_onTouch)
def btn_onTouch(event):
ui.showDateTimePicker(onDateTime)
def onDateTime(val):
ui.showPopup(val)