ConfirmationBar
This widget is a Toolbar with default buttons for items common to system dialogs. Button order is appropriate for the platform. For example, on Windows, OK/Cancel buttons are presented in that order, while on Mac OS X and many flavors of Linux, these buttons are presented in Cancel/OK order.
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
The name of the default button. Must match with the defaults in namedItems.
Has a corresponding runtime defaultButton property.
-
keyMap : Object<String, KeyMapConfig>{"Enter":"doDefault","NumpadEnter":"doDefault","Escape":"doCancel"}
-
The default buttons available for use in the items config.
-
Set to
falseto disable synchronizing button widths. By default, buttons are assigned aminWidthbased on the longest text. The default OK and Cancel buttons (in the en-US locale) will be assignedminWidth = '6em'.Has a corresponding runtime syncWidthButtons property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ConfirmationBar class, or subclass thereof.
-
Returns the
cancelbutton if present in the items config ornullif not present. -
The name of the default button. Must match with the defaults in namedItems.
Has a corresponding defaultButton config.
-
Returns the
nobutton if present in the items config ornullif not present. -
Returns the
okbutton if present in the items config ornullif not present. -
Set to
falseto disable synchronizing button widths. By default, buttons are assigned aminWidthbased on the longest text. The default OK and Cancel buttons (in the en-US locale) will be assignedminWidth = '6em'.Has a corresponding syncWidthButtons config.
-
Returns the
yesbutton if present in the items config ornullif not present. -
Identifies an object as an instance of ConfirmationBar class, or subclass thereof.