Classes
AddedRemovedEvent
AlertElement
AnchorContainerElement
ArrowShape
ButtonElement
CanvasElement
CanvasManager
CheckboxElement
CheckboxSkinElement
CollectionChangedEvent
CollectionSort
ColorPickerButtonElement
ColorPickerElement
ContainerBaseElement
CursorDefinition
DataGridColumnDefinition
DataGridDataRenderer
DataGridElement
DataGridHeaderColumnDividerSkinElement
DataGridHeaderElement
DataGridHeaderItemRenderer
DataGridItemData
DataGridItemRendererBase
DataGridLabelItemRenderer
DataListData
DataListElement
DataRendererBaseElement
DataRendererLabelElement
DatePickerButtonElement
DatePickerElement
DispatcherEvent
DrawMetrics
DropdownArrowButtonSkinElement
DropdownBaseElement
DropdownElement
ElementEvent
ElementGridItemClickEvent
ElementKeyboardEvent
ElementListItemClickEvent
ElementMouseEvent
ElementMouseWheelEvent
EllipseShape
EventDispatcher
FillBase
GridContainerElement
GridContainerRowColumnDefinition
ImageElement
IpInputElement
LabelElement
LinearGradientFill
ListCollection
ListContainerElement
ProgressElement
RadioButtonElement
RadioButtonSkinElement
RoundedRectangleShape
ScrollBarElement
ScrollButtonSkinElement
ShapeBase
SkinnableElement
SolidFill
StyleableBase
StyleChangedEvent
StyleData
StyleDefinition
StyleProxy
TextAreaElement
TextElement
TextFieldElement
TextInputElement
TimeInputElement
ToggleButtonElement
ToggleButtonGroup
Tween
ViewportElement


DatePickerButtonElement

DatePickerButtonElement is a compound button that creates a pop-up DatePicker
where the user can select a date which is then displayed on the button.
The DatePickerButtonElement button itself contains a child button which is used to render
the divider line and arrow. DatePickerButtonElement proxies its SkinState style to the arrow
button so the arrow button will change states along with the DatePickerButtonElement itself.
See the default skin for the arrow button DropdownArrowButtonSkinElement for additional styles.

Inheritance:     DatePickerButtonElement ➞ DropdownBaseElementButtonElementSkinnableElementCanvasElementStyleableBaseStyleDefinitionEventDispatcher ➞ Object

Styles
Show Inherited
Style Defined By
AllowDeselect     :    boolean DatePickerButtonElement
When false, the DatePicker day ToggleButtons cannot be de-selected by the user and the "selectedOver" and "selectedDown" states are not used.
 
DateFormatLabelFunction     :    Function DatePickerButtonElement
A function that accepts a date and returns a string to be displayed as the date label.
Signature: function (date) { return "" }
The default label function returns returns international date format "YYYY-MM-DD".
 
PopupDatePickerDistance     :    Number DatePickerButtonElement
Vertical distance in pixels to place the DatePicker pop up from the button.
Defaults to -1 to collapse default 1 pixel borders.
 
PopupDatePickerStyle     :    StyleDefinition DatePickerButtonElement
The StyleDefinition or [StyleDefinition] array to apply to the pop up DatePicker element.
 


Events
Show Inherited
Event Defined By
changed     :    ElementEvent DatePickerButtonElement
Dispatched when the date selection changes as a result of user input.
 


Public Functions
Show Inherited
Function Defined By
DatePickerButtonElement() [Constructor] DatePickerButtonElement
Creates new DatePickerButtonElement instance.
 
getSelectedDate() DatePickerButtonElement
Gets the selected date of the DatePickerButton.
  returns     :    Date
Currently selected date or null if none selected.
 
setSelectedDate(date) DatePickerButtonElement
Sets the selected date of the DatePickerButton.
  date     :    Date
Date to set as the selected date or null for no selection.
 


Internal Members
Show Inherited


Internal Functions
Show Inherited
Function Defined By
_layoutDatePickerPopup() DatePickerButtonElement
Sizes and positions the DatePicker pop up.
 
_onDatePickerChangedInstance(elementEvent) DatePickerButtonElement
Event handler for pop up DatePicker "changed" event.
Updates date label and re-dispatches "changed" event.
  elementEvent     :    ElementEvent
ElementEvent to process.
 
_onDatePickerLayoutComplete(event) DatePickerButtonElement
Event handler for pop up DatePicker "layoutcomplete".
Updates the pop up size when content size is known and determines
position of the pop up depending on available space.
  event     :    DispatcherEvent
DispatcherEvent to process.
 
_updateText() DatePickerButtonElement
Updates the date label text via the styled DateFormatLabelFunction