Provides an API for creating and managing the component for variant management context sharing.
Node | Description |
---|
Method | Description |
---|---|
sap.ui.fl.write.api.ContextSharingAPI.createComponent |
Creates component for sharing contexts in variant management. In case the component already exists, it will not be created again to avoid duplicate IDs. |
Creates component for sharing contexts in variant management. In case the component already exists, it will not be created again to avoid duplicate IDs. sap.ui.fl.variants.context.Component.setSelectedContexts
needs to be called afterwards.
Param | Type | DefaultValue | Description |
---|---|---|---|
mPropertyBag | object |
Object with parameters as properties |
|
layer | string |
Layer |