Show:

A base class for Form Builder Pages Builder.

Constructor

A.FormBuilderPages

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_addPage

() protected

Create a new page on Form Builder.

_addTab

() protected

Create a new tab on Form Builder.

_afterActivePageNumberChange

(
  • event
)
protected

Fired after the activePageNumber attribute changes.

Parameters:

_afterModeChange

() protected

Fired after the mode attribute changes.

_afterPagesQuantityChange

() protected

Fired after the pagesQuantity attribute changes.

_afterTabViewSelectionChange

() protected

Fired after the selection attribute from the tabview changes.

_createPagination

() A.Pagination protected

Creates pagination.

Returns:

_createPopover

() A.Popover protected

Creates popover.

Returns:

_createTabView

() A.TabView protected

Creates tab view.

Returns:

_createUntitledPageLabel

(
  • activePageNumber
  • pagesQuantity
)
String protected

Returns an untitled page string based on strings attribute.

Parameters:

Returns:

String:

_disablePaginationView

() protected

Disable Pagination items.

_disableTabView

() protected

Disable TabView items.

_enablePaginationView

() protected

Enable TabView items.

_enablePaginationView

() protected

Enable Pagination items.

_getDeleteButtonLabel

() String protected

Returns the delete button string according to the page quantity.

Returns:

String:

_getPagination

() A.Pagination protected

Returns the pagination instance.

Returns:

_getPopover

() A.Popover protected

Returns the popover instance.

Returns:

_getTabView

() A.TabView protected

Returns the tab view instance.

Returns:

_onAddLastPageClick

() protected

Fired on Add new page after last element clicked.

_onCurrentPageChange

() protected

Fired on current page change.

_onDescriptionInputValueChange

(
  • event
)
protected

Fired on description input value change.

Parameters:

_onRemovePageClick

() protected

Fired on remove button clicked.

_onSwitchViewClick

() protected

Fired on switch view button clicked.

_onTitleInputValueChange

(
  • event
)
protected

Fired on title input value change.

Parameters:

_removeTab

(
  • index
)
protected

Remove a tab from Form Builder.

Parameters:

_renderFooterPagination

() protected

Render default footer pagination

_renderTopPagination

() protected

Render default top pagination

_syncPopoverContent

() protected

Updates the popover content ui.

_uiSetActivePageNumber

(
  • activePageNumber
)
protected

Updates the ui according to the value of the activePageNumber attribute.

Parameters:

_uiSetMode

(
  • type
)
protected

Switch the pages mode view.

Parameters:

  • type String

_uiSetPagesQuantity

(
  • total
)
protected

Updates the ui according to the value of the pagesQuantity attribute.

Parameters:

_updateTabViewContent

() protected

Update all tabs title based on titles attribute.

destructor

() protected

Destructor lifecycle implementation for the A.FormBuilderPages class. Lifecycle.

disablePaginations

()

Disable PaginationVeiw and TabView.

enablePaginations

()

Enable PaginationVeiw and TabView.

initializer

() protected

Construction logic executed during the A.FormBuilderPages instantiation. Lifecycle.

Attributes

activePageNumber

Number

Index of the current active page.

Default: 1

descriptions

Array

List of all pages descriptions.

Default: []

mode

String

The mode of the pages visualization. Could be pagination or tabs.

Default: 'pagination'

pageHeader

Node

Container for the page's header.

Default: null

pagesQuantity

Number

Total of pages.

Default: 0

paginationContainer

Node

Container for the paginator.

Default: null

strings

Object

Collection of strings used to label elements of the UI. To Untitled Page text, the string used should follow this have placeholder to Active Page Number and Pages Quantity, e.g. Untitled Page ({activePageNumber} of {pagesQuantity}).

tabviewContainer

Node

Container for the tab view.

Default: null

titles

Array

List of all pages titles.

Default: []