Show:

A base class for Widget Toolbars.

Constructor

Methods

_syncPrimaryButtonUI

() protected

Sync the primary button on the UI.

_syncUIToolbars

() protected

Sync A.Toolbar instances on the UI.

_uiSetToolbars

() protected

Set A.Toolbar instances.

addToolbar

(
  • toolbar
  • section
)
A.Toolbar

Includes a A.Toolbar instance into the widget.

Parameters:

  • toolbar Object
  • section Object

Returns:

getToolbar

(
  • section
)
A.Toolbar

Gets the A.Toolbar instance based on its section.

Parameters:

  • section Object

Returns:

getToolbarSection

(
  • section
)
String

Gets the toolbar's section. If no argument is passed, returns the StdMod.FOOTER.

Parameters:

  • section Object

Returns:

String:

initializer

() protected

Construction logic executed during WidgetToolbars instantiation. Lifecycle.

removeToolbar

(
  • section
)

Destroys the A.Toolbar instance based on its section.

Parameters:

  • section Object

Properties

ATTRS

Object static

Static property used to define the default attribute configuration.

Attributes

toolbarCssClass

Object

Collection of toolbar's header, body, and footer CSS classes.

toolbarPosition

Object

Collection of toolbar's header, body, and footer positions.

toolbars

Object

Collection of A.Toolbar instances.

Default: {}