Class sap.m.ToggleButtonModule: sap/m/ToggleButton
The ToggleButton Control is a Button that can be toggled between pressed and normal state
sClassName
and enriches it with the information contained in oClassInfo
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- pressed : boolean (default: false)
In addition, all settings applicable to the base type sap.m.Button can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of information as described in sap.m.Button.extend.
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
pressed
. The property is “true” when the control is toggled. The default state of this property is "false".
Default value is false
.
{boolean} | Value of property pressed |
pressed
. The property is “true” when the control is toggled. The default state of this property is "false".
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bPressed | New value for property pressed |
{sap.m.ToggleButton} | Reference to this in order to allow method chaining |