Class M.ToolbarView
Extends
M.View.
The root object for ToolbarViews.
Defined in: toolbar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Defines the position of the TabBar.
|
|
If the showBackButton property is set to yes, this property will be used to
save a reference to the M.ButtonView.
|
|
This property determines whether to fix the toolbar to the top / bottom of a
page.
|
|
Determines whether to display an auto-generated back-button on the left side
of the toolbar view or not.
|
|
The type of this object.
|
- Fields borrowed from class M.View:
- childViews, computedValue, contentBinding, contentBindingReverse, cssClass, cssClassOnError, cssClassOnInit, cssStyle, events, hasFocus, html, id, isInline, isView, modelId, parentView, recommendedEvents, triggerActionOnChange, triggerActionOnEnter, triggerActionOnKeyUp, value
Method Attributes | Method Name and Description |
---|---|
This method is responsible for registering events for view elements and its child views.
|
|
Triggers render() on all children or simply display the value as a label,
if it is set.
|
- Methods borrowed from class M.View:
- addCssClass, attachToObservable, clearHtml, clearValue, clearValues, computeValue, contentDidChange, delegateValueUpdate, design, getChildViewsAsArray, getIds, getValue, getValues, gotFocus, lostFocus, nl2br, removeCssClass, removeCssProperty, renderUpdate, secure, setCssProperty, setValueFromDOM, style, tab2space, theme, themeChildViews
- Methods borrowed from class M.Object:
- bindToCaller, create, destroy, extend, get, include, set
Field Detail
{String}
anchorLocation
Defines the position of the TabBar. Possible values are:
- M.BOTTOM => is a footer bar
- M.TOP => is a header bar
backButton
If the showBackButton property is set to yes, this property will be used to
save a reference to the M.ButtonView.
{Boolean}
isFixed
This property determines whether to fix the toolbar to the top / bottom of a
page. By default this is set to YES.
{Boolean}
showBackButton
Determines whether to display an auto-generated back-button on the left side
of the toolbar view or not.
{String}
type
The type of this object.
Method Detail
registerEvents()
This method is responsible for registering events for view elements and its child views. It
basically passes the view's event-property to M.EventDispatcher to bind the appropriate
events.
It extend M.View's registerEvents method with some special stuff for list views and their
internal events.
renderChildViews()
Triggers render() on all children or simply display the value as a label,
if it is set.