DatePicker
Definition
A button that, when clicked on, launches a popup dialog to allow the user to select a date on the Gregorian Calendar.
Note: Date and time are manipulated using methods in the Clock component.
Properties
- BackgroundColor
- Specifies the
DatePicker
’s background color as an alpha-red-green-blue integer. If anImage
has been set, the color change will not be visible until theImage
is removed. - Day
- Returns the Day of the month that was last picked using the DatePicker.
- Enabled
- Specifies whether the
DatePicker
should be active and clickable. - FontBold
- Specifies whether the text of the
DatePicker
should be bold. Some fonts do not support bold. - FontItalic
- Specifies whether the text of the
DatePicker
should be italic. Some fonts do not support italic. - FontSize
- Specifies the text font size of the
DatePicker
, measured in sp(scale-independent pixels). - FontTypeface
- Specifies the text font face of the
DatePicker
as default, serif, sans serif, or monospace. - Height
- Specifies the
DatePicker
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
DatePicker
’s vertical height as a percentage of theScreen
’sHeight
. - Image
- Specifies the path of the
DatePicker
’s image. If there is both anImage
and aBackgroundColor
specified, only theImage
will be visible. - Instant
- Returns instant of the date that was last picked using the DatePicker.
- Month
- Returns the number of the Month that was last picked using the DatePicker.
- MonthInText
- Returns the name of the Month that was last picked using the DatePicker.
- Shape
- Specifies the shape of the
DatePicker
. The valid values for this property are0
(default),1
(rounded),2
(rectangle), and3
(oval). TheShape
will not be visible if anImage
is used. - ShowFeedback
- Specifies if a visual feedback should be shown when a
DatePicker
with an assignedImage
is pressed. - Text
- Specifies the text displayed by the
DatePicker
. - TextAlignment
- Specifies the alignment of the
DatePicker
’s text. Valid values are:0
(normal; e.g., left-justified if text is written left to right),1
(center), or2
(opposite; e.g., right-justified if text is written left to right). - TextColor
- Specifies the text color of the
DatePicker
as an alpha-red-green-blue integer. - Visible
- Specifies whether the
DatePicker
should be visible on the screen. Value istrue
if theDatePicker
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
DatePicker
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
DatePicker
as a percentage of theScreen
’sWidth
. - Year
- Returns the Year that was last picked using the DatePicker.