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::Options
options
Return
DatePicker
Class properties
Integer
elementYearMonth
Integer
elementYearMonthDay
Integer
elementHourMinute
Integer
elementHourMinuteSecond
Methods
setDate(time)
Set the selected date to time
.
Parameters
Date
time
getDate()
Get the selected date.
Return
Date
setRange(minimum, maximum)
Set the minimum
and maximum
date values.
Parameters
Date
minimumDate
maximum
getRange()
Return the minimum
and maximum
date values.
Return
[Date, Date]
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