Optionalaria(Optional) The ARIA property reflected by the aria-label DOM attribute used by assistive technologies.
Optionalaria(Optional) The ARIA property reflected by the aria-ariaLabelledBy DOM attribute used by assistive technologies.
(Optional) The additional CSS class set on the button.
(Optional) An XML module:ui/icon/iconview~IconView#content content of the icon.
When defined, an iconView should be added to the button.
The user must provide the entire XML string, not just the path. See the {@glink framework/architecture/ui-library#setting-label-icon-and-tooltip UI library} guide for details.
Controls whether the button view is enabled, i.e. it can be clicked and execute an action.
To change the "on" state of the button, use #isOn instead.
Controls whether the button view is "on". It makes sense when a feature it represents is currently active, e.g. a bold button is "on" when the selection is in the bold text.
To disable the button, use #isEnabled instead.
Controls whether the button view is a toggle button (two–state) for assistive technologies.
Controls whether the button view is visible. Visible by default, buttons are hidden using a CSS class.
(Optional) The keystroke associated with the button, i.e. CTRL+B, in the string format compatible with module:utils/keyboard.
Note: Use module:ui/button/button~Button#withKeystroke if you want to display the keystroke information next to the module:ui/button/button~Button#label label.
The label of the button view visible to the user when #withText is true.
It can also be used to create a #tooltip.
(Optional) The value of the style attribute of the label.
Optionalrole(Optional) The property reflected by the role DOM attribute to be used by assistive technologies.
(Optional) Controls the tabindex HTML attribute of the button. By default, the button is focusable
but does not included in the Tab order.
(Optional) Tooltip of the button, i.e. displayed when hovering the button with the mouse cursor.
Boolean (e.g. true), then combination of label and keystroke will be set as a tooltip.String, tooltip will equal the exact text of that String.Function, label and keystroke will be passed to that function, which is to return
a string with the tooltip text.const view = new ButtonView( locale );
view.tooltip = ( label, keystroke ) => `A tooltip for ${ label } and ${ keystroke }.`
(Optional) The position of the tooltip. See module:ui/tooltipmanager~TooltipManager to learn more about the tooltip system.
Note: It makes sense only when the #tooltip tooltip attribute is defined.
The HTML type of the button.
(Optional) Controls whether the keystroke of the button is displayed next to its module:ui/button/button~Button#label label.
Note: This property requires a module:ui/button/button~Button#keystroke keystroke to be defined in the first place.
(Optional) Controls whether the label of the button is hidden (e.g. an icon–only button).
The button interface. Implemented by, among others, module:ui/button/buttonview~ButtonView, module:ui/dropdown/button/splitbuttonview~SplitButtonView and module:ui/dropdown/button/dropdownbuttonview~DropdownButtonView.