Class: SidebarComponent

SidebarComponent

new tart.ui.SidebarComponent()

Extends

Members

statictart.ui.SidebarComponent.EventTypestring

Sidebar events.

Properties:
Name Type Default Description
SWITCH_VIEW string switchView

mappingsstring

Dom mapping.

Properties:
Name Type Default Description
ITEM string sidebar-item

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

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

Dispatches a switch view event to listeners and toggles the sidebar of the view manager that is responsible for this sidebar.

Name Type Description
e goog.events.BrowserEvent

Tap event.

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.

template_items(){string}

Returns:
Type Description
string Returns the items for the sidebar.

templates_base(){string}

Returns:
Type Description
string Returns the template base.