JavaXT
|
|||||
Button ClassCustom button control. The button has 3 parts: icon, label, and an arrow.
ConstructorsUsed to instantiate this class
Config Optionsselected If true, the button will initially appear in a selected state and the isSelected() method will return true. Default is false.
disabled If true, the button will initially appear disabled and the isDisabled() method will return true. Default is false.
toggle If true, the button will be rendered as a toggle button. Default is false, unless the button has a menu.
menu If true, will create a drop-down menu for the button. Components such as buttons or custom DOM elements can be added directly to the menu. See getMenuPanel() for more information.
display Used to set the "display" style attribute for the outer DOM element. This is not commonly ued. Default is "inline-block".
iconAlign Used to set the icon position relative to the button label. Options are "left" or "right". Note that the icon style is set in the style config. The icon style should not be used to control whether the icon appears to the left or right of the label. Use this config instead.
style Style for individual elements within the component. Note that you can provide CSS class names instead of individual style definitions.
EventsPublic MethodsgetMenuPanel( ) Returns the DOM element associated with the menu panel. Typically, this is used to render menu options (i.e. buttons). |