Class sap.gantt.config.SettingItemModule: sap/gantt/config/SettingItem
The SettingItem control allows you to create a setting item in the toolbar, which is presented as a checkbox with a label.
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
- checked : boolean (default: false)
- key : string
- displayText : string
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
{string} | sId? | ID of 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.ui.core.Element.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 |
checked
. Indicates whether the checkbox is selected or not
Default value is false
.
{boolean} | Value of property checked |
displayText
. Aria label of the checkbox
{string} | Value of property displayText |
key
. Identifier of an event when the checkbox is toggled
{string} | Value of property key |
checked
. Indicates whether the checkbox is selected or not
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
{boolean} | bChecked | New value for property checked |
{sap.gantt.config.SettingItem} | Reference to this in order to allow method chaining |
displayText
. Aria label of the checkbox
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sDisplayText | New value for property displayText |
{sap.gantt.config.SettingItem} | Reference to this in order to allow method chaining |
key
. Identifier of an event when the checkbox is toggled
When called with a value of null
or undefined
, the default value of the property will be restored.
{string} | sKey | New value for property key |
{sap.gantt.config.SettingItem} | Reference to this in order to allow method chaining |