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::Options
options
Return
DatePicker
Class properties
integer
elementyearmonth
integer
elementyearmonthday
integer
elementhourminute
integer
elementhourminutesecond
Methods
setdate(time)
Set the selected date to time
.
Parameters
number
time
getdate()
Get the selected date.
Return
number
setrange(minimum, maximum)
Set the minimum
and maximum
date values.
Parameters
number
minimumnumber
maximum
getrange()
Return the minimum
and maximum
date values.
Return
number, number
hasstepper()
Return whether there is a stepper attached to the text field.
Return
boolean
Events
ondatechange(self)
Emitted when the selected date has been changed.
Parameters
DatePicker
self