Class M.ListItemView
Extends
M.View.
This is the prototype for any list item view. It can only be used as child view of a list
view (M.ListView).
Defined in: list_item.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
This property contains the list item's delete button that is automatically shown if the
list view's built-in toggleRemove() functionality is used.
|
|
This property determines whether a list item has one single action that is triggered
once there is a click anywhere inside the list item or if there are specific actions
defined for single ui elements within one list item.
|
|
States whether the list view item is currently in edit mode or not.
|
|
This property determines whether the list item is a divider or not.
|
|
This property can be used to specify whether a selection list item can be selected or not.
|
|
This property specifies the recommended events for this type of view.
|
|
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, triggerActionOnChange, triggerActionOnEnter, triggerActionOnKeyUp, value
Method Attributes | Method Name and Description |
---|---|
This method is responsible for registering events for view elements and its child views.
|
- 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
{M.ButtonView}
deleteButton
This property contains the list item's delete button that is automatically shown if the
list view's built-in toggleRemove() functionality is used.
{Boolean}
hasSingleAction
This property determines whether a list item has one single action that is triggered
once there is a click anywhere inside the list item or if there are specific actions
defined for single ui elements within one list item.
{Boolean}
inEditMode
States whether the list view item is currently in edit mode or not. This is mainly used by
the built-in toggleRemove() functionality of list views.
{Boolean}
isDivider
This property determines whether the list item is a divider or not.
isSelectable
This property can be used to specify whether a selection list item can be selected or not. Note, that this
only affects styling stuff. If set to NO, you still can apply e.g. tap events.
{Array}
recommendedEvents
This property specifies the recommended events for this type of view.
{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 item views and
their internal events.