DatePicker
A view displays date and time with editing ability.
| Module | require("yue.gui") |
| Type | Class |
| Inherits | View |
Class methods
create(options)
Create a new DatePicker with options.
Parameters
DatePicker::Optionsoptions
Return
DatePickerClass properties
integer elementyearmonth
integer elementyearmonthday
integer elementhourminute
integer elementhourminutesecond
Methods
setdate(time)
Set the selected date to time.
Parameters
numbertime
getdate()
Get the selected date.
Return
numbersetrange(minimum, maximum)
Set the minimum and maximum date values.
Parameters
numberminimumnumbermaximum
getrange()
Return the minimum and maximum date values.
Return
number, numberhasstepper()
Return whether there is a stepper attached to the text field.
Return
booleanEvents
ondatechange(self)
Emitted when the selected date has been changed.
Parameters
DatePickerself