DatePicker
A view displays date and time with editing ability.
| Module | require("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
Datetime
getDate()
Get the selected date.
Return
DatesetRange(minimum, maximum)
Set the minimum and maximum date values.
Parameters
DateminimumDatemaximum
getRange()
Return the minimum and maximum date values.
Return
[Date, Date]hasStepper()
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