Class sap.ui.core.ItemModule: sap/ui/core/Item
A control base type.
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
- text : string (default: )
- enabled : boolean (default: true)
- textDirection : sap.ui.core.TextDirection (default: Inherit)
- key : string
In addition, all settings applicable to the base type sap.ui.core.Element 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.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 |
enabled. Enabled items can be selected.
Default value is true.
| {boolean} | Value of property enabled |
key. Can be used as input for subsequent actions.
| {string} | Value of property key |
text. The text to be displayed for the item.
Default value is .
| {string} | Value of property text |
textDirection. Options are RTL and LTR. Alternatively, an item can inherit its text direction from its parent control.
Default value is Inherit.
| {sap.ui.core.TextDirection} | Value of property textDirection |
enabled. Enabled items can be selected.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
| {boolean} | bEnabled | New value for property enabled |
| {sap.ui.core.Item} | Reference to this in order to allow method chaining |
key. Can be used as input for subsequent actions.
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.ui.core.Item} | Reference to this in order to allow method chaining |
text. The text to be displayed for the item.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is .
| {string} | sText | New value for property text |
| {sap.ui.core.Item} | Reference to this in order to allow method chaining |
textDirection. Options are RTL and LTR. Alternatively, an item can inherit its text direction from its parent control.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is Inherit.
| {sap.ui.core.TextDirection} | sTextDirection | New value for property textDirection |
| {sap.ui.core.Item} | Reference to this in order to allow method chaining |