DatePicker

A view displays date and time with editing ability.

Modulerequire("yue.gui")
TypeClass
InheritsView

Class methods

create(options)

Create a new DatePicker with options.

Parameters

Return

DatePicker

Class properties

integer elementyearmonth

integer elementyearmonthday

integer elementhourminute

integer elementhourminutesecond

Methods

setdate(time)

Set the selected date to time.

Parameters

getdate()

Get the selected date.

Return

number

setrange(minimum, maximum)

Set the minimum and maximum date values.

Parameters

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

Preventable

No.