Class M.ButtonView
Extends
M.View.
This defines the prototype for any button view. A button is a view element that is
typically used for triggering an action, e.g. switching to another page, firing a
request or opening a dialog.
Defined in: button.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Determines whether this button is active or not.
|
|
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 |
---|---|
setValue(value)
Sets the button's value and calls renderUpdate() to make the value update visible.
|
- Methods borrowed from class M.View:
- addCssClass, attachToObservable, clearHtml, computeValue, contentDidChange, delegateValueUpdate, design, gotFocus, lostFocus, nl2br, removeCssClass, removeCssProperty, renderUpdate, secure, setCssProperty, setValueFromDOM, style, theme, themeChildViews
- Methods borrowed from class M.Object:
- bindToCaller, create, destroy, extend, get, include, set
Field Detail
{Boolean}
isActive
Determines whether this button is active or not.
Note: This property is only used if the button is part of a button group (M.ButtonGroupView).
{String}
type
The type of this object.
Method Detail
setValue(value)
Sets the button's value and calls renderUpdate() to make the value update visible.
- Parameters:
- {String} value
- The button's new value.