v7.3.0

ConfirmationBar
Widget

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.

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • defaultButton : 'cancel'/'ok'/'no'/'yes'ok

    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"}

    Maps Enter and Escape to doDefault and doCancel, respectively.

  • namedItems : Object<String, WidgetConfig>{"yes":"","no":"","ok":"","cancel":""}

    The default buttons available for use in the items config.

  • Set to false to disable synchronizing button widths. By default, buttons are assigned a minWidth based on the longest text. The default OK and Cancel buttons (in the en-US locale) will be assigned minWidth = '6em'.

    Has a corresponding runtime syncWidthButtons property.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • cancelButton : Button
    READONLY

    Returns the cancel button if present in the items config or null if not present.

  • defaultButton : 'cancel'/'ok'/'no'/'yes'ok

    The name of the default button. Must match with the defaults in namedItems.

    Has a corresponding defaultButton config.

  • noButton : Button
    READONLY

    Returns the no button if present in the items config or null if not present.

  • okButton : Button
    READONLY

    Returns the ok button if present in the items config or null if not present.

  • Set to false to disable synchronizing button widths. By default, buttons are assigned a minWidth based on the longest text. The default OK and Cancel buttons (in the en-US locale) will be assigned minWidth = '6em'.

    Has a corresponding syncWidthButtons config.

  • yesButton : Button
    READONLY

    Returns the yes button if present in the items config or null if not present.

  • isConfirmationBar : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of ConfirmationBar class, or subclass thereof.

Functions

Functions are methods available for calling on the class

    Events

    Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

    Event handlers

    Event handlers are callbacks called as a result of certain actions in this class

    Type definitions

    type: confirmationbar

    Source path

    Core/widget/ConfirmationBar.js

    Contents