new tart.ui.TabBarView()
Extends
Members
-
classNamestring
-
Defines CSS class names for the view.
-
hasSidebarboolean
-
True if the view allows sidebar access. This lets the view manager orchestrate touch gestures for the sidebar menu. Default is false.
-
indexnumber
-
View index in z-axis. This should be used as the z value for initial translate3d style declaration.
-
mappingsstring
-
Dom mappings.
Properties:
Name Type Default Description ITEM
string tab-item ITEMS
string tab-items ACTIVE
string .active -
supportsBackGestureboolean
-
Determines whether the view should support back gestures to go back in history or not.
Methods
-
inherited activate()
-
Method called when the View is being activated by a ViewManager. Subclasses should override this method for tasks that should be done when the View is in viewport, such as updating information, etc.
-
activateItem(index)
-
Adds active class to item.
Name Type Description index
number Index of the item to be active.
-
activateItemByName(name)
-
Activates a tab bar item with a given name. If an item for the given the name isn't found, does nothing.
Name Type Description name
string Name for the tab bar item.
-
inherited protectedbindModelEvents()
-
Listens to the model's events. This method should be overriden by the implementer, and should keep the model's event listeners.
-
deactivateActiveItem()
-
Removes active class of active item.
-
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 -
inherited getTemplate(){string}
-
Returns the HTML markup for the initial state.
Returns:
Type Description string The template for the view. -
inherited onAfterRender()
-
Method called after a render process. Called automatically after each render. Subclasses should override this method for tasks that should be done when the View is in document.
-
inherited onBeforeRender()
-
Method called before a render process. Called automatically before each render. Subclasses should override this method for tasks that should be done right before the View enters the document.
-
onItemTap(e)
-
Name Type Description e
goog.events.BrowserEvent Item touch event handler.
-
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 -
templates_content(){string}
-
Returns:
Type Description string Base template of NavigationBar component. -
templates_items(){string}
-
Returns:
Type Description string Template for tab bar items.