Class sap.ushell.services.Personalization.VariantModule: sap/ushell/services/Personalization
The personalization variant contains personalization data. It is used in the personalization container mode.
Since: 1.22.0.
Constructor Summary
new sap.ushell.services.Personalization.Variant()To be instantiated via Personalization.VariantSet add / get Variant only
Method Summary
Constructor Detail
Method Detail
containsItem(sItemKey): boolean
Checks if a specific item is contained in this variant.
Parameters:
{string} | sItemKey | item key |
- Since:
- 1.18.0
Returns:
{boolean} | true if the variant contains an item with the key |
delItem(sItemKey)
Deletes an item from this variant. In case the item does not exist, nothing happens.
Parameters:
{string} | sItemKey | item key |
- Since:
- 1.22.0
getItemKeys(): array
Returns an array with the keys of all items in this variant.
- Since:
- 1.22.0
Returns:
{array} | item keys |
getItemValue(sItemKey): object
Returns the value for an item in this variant.
Parameters:
{string} | sItemKey | item key |
- Since:
- 1.18.0
Returns:
{object} | item value (JSON object). In case the variant does not contain an item with this key undefined is returned. |
getVariantName(): string
Returns the name of this variant.
- Since:
- 1.22.0
Returns:
{string} | variant name. |