Skip to content
Patrick Ruhsert edited this page Mar 24, 2020 · 5 revisions

Button component

Just that!

Button

Table of contents

Button properties

The component has the following properties:

Property Type Default Description
enabled Boolean true Whether the component is enabled or not; blocks onAction, onDoubleClick, onRightClick events.
imageStyleClass String Image style class for an optional image of the button (e.g. a FontAwesome or glyphicon class)
tabSeq Number Tab sequence index of the form
styleClass String "btn btn-default" Button style class, typically one of the bootstrap button classes (e.g. "btn btn-primary")
text String The text shown for the button (i18n is supported)
toolTipText String Tooltip text shown when hovering over the button (i18n is supported)
visible Boolean true Whether the button is visible or not

Button events

The component allows to attach handlers for the following events:

Event Params Return Description
onAction event:JSEvent Fired when the button is clicked
onDoubleClick event:JSEvent Fired when the button is double clicked
onRightClick event:JSEvent Fired when the button is right clicked

Button API

The component offers the following API methods:

Method Params Return Description
requestFocus Sets the focus to this button.
Clone this wiki locally