Class M.SearchBarView
Extends
M.View.
M.SearchBarView defines a prototype of a search bar that can be used inside of a list
view or independently as a plain input field with a search styling.
Defined in: search_bar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Determines whether the search bar is part of a list view.
|
|
If the search bar belongs to a list view, this property contains this
list view.
|
|
The type of this object.
|
- Fields borrowed from class M.View:
- childViews, contentBinding, cssClass, cssClassOnError, cssClassOnInit, cssStyle, hasFocus, html, id, isInline, isView, modelId, parentView, triggerActionOnChange, triggerActionOnEnter, triggerActionOnKeyUp, value
Method Attributes | Method Name and Description |
---|---|
setValueFromDOM(evt)
This method sets its value to the value it has in its DOM representation
and then delegates these changes to a controller property if the
contentBindingReverse property is set.
|
- Methods borrowed from class M.View:
- addCssClass, attachToObservable, clearHtml, computeValue, contentDidChange, delegateValueUpdate, design, gotFocus, lostFocus, nl2br, removeCssClass, removeCssProperty, renderUpdate, secure, setCssProperty, style, theme, themeChildViews
- Methods borrowed from class M.Object:
- bindToCaller, create, destroy, extend, get, include, set
Field Detail
{Boolean}
isListViewSearchBar
Determines whether the search bar is part of a list view.
{M.ListView}
listView
If the search bar belongs to a list view, this property contains this
list view.
{String}
type
The type of this object.
Method Detail
setValueFromDOM(evt)
This method sets its value to the value it has in its DOM representation
and then delegates these changes to a controller property if the
contentBindingReverse property is set.
Additionally call target / action if set.
- Parameters:
- {Object} evt
- The event triggered this method.