new tart.ui.NavBarComponent(opt_config)
Includes back button for back navigation.
Name | Type | Description |
---|---|---|
opt_config |
tart.ui.NavBarComponent.NavBarOptions |
optional
Config parameters to include things like title. |
Extends
Members
-
hasBackButtonboolean
-
Defines whether the back button is visible.
-
mappingsstring
-
Dom mapping.
Properties:
Name Type Default Description BACK_BUTTON
string back-button MENU_BUTTON
string menu-button
Methods
-
inherited protectedbindModelEvents()
-
Listens to the model's events. This method should be overriden by the implementer, and should keep the model's event listeners.
-
inherited disposeInternal()
-
-
inherited getChild(selector){Object}
-
Returns children of component's element
Name Type Description selector
string Expression which is searching in component element. This is kind of $ for selecting dom element.
Returns:
Type Description Object -
inherited getElement(){Element}
-
Returns the dom element attached with the Component instance.
Returns:
Type Description Element -
inherited getId(){string}
-
Returns the id of this component.
Returns:
Type Description string The id of this component. -
inherited getPlaceholder(){string}
-
Returns base template of component
Returns:
Type Description string -
onBackButtonTap()
-
Back button tap event handler.
-
onMenuButtonTap(){undefined}
-
Menu button tap event handler. Delegates event handling to subclasses via menuButtonHandler method.
Returns:
Type Description undefined Returns executing menuButtonHandler if available. -
inherited render(opt_base, opt_index)
-
This method should be called after the DlgComponent is inserted into the document. Any work (rendering child components, updating DOM, etc.) should be done in this method.
Name Type Description opt_base
Element optional Optional element to render this item into.
opt_index
number optional Place to render element in base element's children list.
-
inherited templates_base(){string}
-
Template of the root element. This method can be overridden if necessary. Other templates should be named with the templates_ prefix as necessary. Also this template carries related component's id.
Returns:
Type Description string
Type Definitions
-
tart.ui.NavBarComponent.NavBarOptionsObject
-