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


AlertElement

AlertElement is a class used to render pop up alerts. Any element
may be used as an alert. This class is a helper that implements
common features, styles, and functionality for basic alerts.
See CanvasManager addAlert() and removeAlert() for more info.

Inheritance:     AlertElement ➞ ListContainerElementContainerBaseElementCanvasElementStyleableBaseStyleDefinitionEventDispatcher ➞ Object

Styles
Show Inherited
Style Defined By
AlertButtonClass     :    CanvasElement AlertElement
The CanvasElement or subclass constructor type used to generate the alert selection buttons.
Default value is ButtonElement. Alert will set the "Text" style and the _listData on this element
via the text supplied by the array passed to setButtons().
 
AlertButtonListContainerStyle     :    StyleDefinition AlertElement
The StyleDefinition or [StyleDefinition] array to apply to button ListContainer.
This container parents the alert selection buttons.
 
AlertButtonStyle     :    StyleDefinition AlertElement
The StyleDefinition or [StyleDefinition] array to apply to the alert selection buttons.
 
AlertContentListContainerStyle     :    StyleDefinition AlertElement
The StyleDefinition or [StyleDefinition] array to apply to content ListContainer.
This container parents the content text and button list.
 
AlertContentTextStyle     :    StyleDefinition AlertElement
The StyleDefinition or [StyleDefinition] array to apply to the content TextElement.
 
AlertTitleLabelStyle     :    StyleDefinition AlertElement
The StyleDefinition or [StyleDefinition] array to apply to the title LabelElement.
 


Events
Show Inherited


Public Functions
Show Inherited
Function Defined By
AlertElement() [Constructor] AlertElement
Creates new AlertElement instance.
 
createAlert(canvasManager, titleText, contentText, buttonTextArray, styleDefinitions, alertClosedCallback) [Static] AlertElement
Helper function for automatically creating, showing, and closing an alert.
  canvasManager     :    CanvasManager
The CanvasManager instance the alert should be shown.
  titleText     :    String
Text that should be applied to the title LabelElement
  contentText     :    String
Text that should be applied to the content TextElement
  buttonTextArray     :    Array
Array of String used to generate the alert selection buttons and text.
  styleDefinitions     :    StyleDefinition
StyleDefinition or [StyleDefinition] array to apply to the alert instance.
  alertClosedCallback     :    Function
Function to be called when the alert is closed via one of the selection buttons being clicked.
Signature: function onButtonClicked(index, text)
  returns     :    AlertElement
The newly created alert instance
 
setButtons(buttonTextArray) AlertElement
Sets the array of text to used to generate the alert's selection buttons.
  buttonTextArray     :    Array
Array of Strings used to generate buttons and apply text.
 
setContentText(text) AlertElement
Sets the text to apply to the alert content TextElement
  text     :    String
The string use as the content text.
 
setSelectionCallback(callbackFunction) AlertElement
Sets the callback to be called when an alert button is clicked.
  callbackFunction     :    Function
Function to call when an alert button is clicked.
Signature: function onAlertButtonClicked(index, text)
 
setTitleText(text) AlertElement
Sets the text to apply to the alert title LabelElement
  text     :    String
The string use as the title text.
 


Internal Members
Show Inherited


Internal Functions
Show Inherited