Class sap.ui.comp.variants.VariantItemModule: sap/ui/comp/variants/VariantItem
The VariantItem class describes a variant item.
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
- executeOnSelection : boolean (default: false)
- readOnly : boolean (default: false)
- lifecycleTransportId : string
- global : boolean
- lifecyclePackage : string
- namespace : string
- accessOptions : string
- labelReadOnly : boolean (default: false)
- author : string
In addition, all settings applicable to the base type sap.ui.core.Item 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.Item.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 |
author. Author of the variant
- Since:
- 1.38.0
| {string} | Value of property author |
executeOnSelection. Attribute for usage in Smart Filter Bar
Default value is false.
- Since:
- 1.26.0
| {boolean} | Value of property executeOnSelection |
global. Indicator if a variant is visible for all users.
- Since:
- 1.26.0
| {boolean} | Value of property global |
labelReadOnly. Indicates if the variant title can be changed.
Default value is false.
- Since:
- 1.26.0
| {boolean} | Value of property labelReadOnly |
lifecyclePackage. ABAP package the variant is assigned to. Used for transport functionality.
- Since:
- 1.26.0
| {string} | Value of property lifecyclePackage |
lifecycleTransportId. Identifier of the transport object the variant is assigned to.
- Since:
- 1.26.0
| {string} | Value of property lifecycleTransportId |
namespace. Variant namespace
- Since:
- 1.26.0
| {string} | Value of property namespace |
readOnly. Is the user allowed to change the item's data
Default value is false.
- Since:
- 1.26.0
| {boolean} | Value of property readOnly |
author. Author of the variant
When called with a value of null or undefined, the default value of the property will be restored.
| {string} | sAuthor | New value for property author |
- Since:
- 1.38.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
executeOnSelection. Attribute for usage in Smart Filter Bar
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
| {boolean} | bExecuteOnSelection | New value for property executeOnSelection |
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
global. Indicator if a variant is visible for all users.
When called with a value of null or undefined, the default value of the property will be restored.
| {boolean} | bGlobal | New value for property global |
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
labelReadOnly. Indicates if the variant title can be changed.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
| {boolean} | bLabelReadOnly | New value for property labelReadOnly |
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
lifecyclePackage. ABAP package the variant is assigned to. Used for transport functionality.
When called with a value of null or undefined, the default value of the property will be restored.
| {string} | sLifecyclePackage | New value for property lifecyclePackage |
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
lifecycleTransportId. Identifier of the transport object the variant is assigned to.
When called with a value of null or undefined, the default value of the property will be restored.
| {string} | sLifecycleTransportId | New value for property lifecycleTransportId |
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
namespace. Variant namespace
When called with a value of null or undefined, the default value of the property will be restored.
| {string} | sNamespace | New value for property namespace |
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
readOnly. Is the user allowed to change the item's data
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
| {boolean} | bReadOnly | New value for property readOnly |
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |
accessOptions. Flags for a variant to indicate why it might be read-only.
- Deprecated:
- Since version 1.28.0. Replaced by property
labelReadOnly
- Since:
- 1.26.0
| {string} | Value of property accessOptions |
accessOptions. Flags for a variant to indicate why it might be read-only.
When called with a value of null or undefined, the default value of the property will be restored.
| {string} | sAccessOptions | New value for property accessOptions |
- Deprecated:
- Since version 1.28.0. Replaced by property
labelReadOnly
- Since:
- 1.26.0
| {sap.ui.comp.variants.VariantItem} | Reference to this in order to allow method chaining |