Methods
(static) forElement(semanticElement, contextopt) → {object}
Returns the configuration for the semantic element
| Name | Type | Attributes | Description |
|---|---|---|---|
semanticElement | $k. | ||
context | $k. | <optional> | Context of the configuration |
- Since
- 4.1.0
The rendered JSON object
- Type:
- object
(static) from(configurationElement) → {$k.ViewConfiguration}
Returns the confguration defined by the element
| Name | Type | Description |
|---|---|---|
configurationElement | $k. | The configuration element |
- Since
- 4.1.0
- Type:
- $k.
ViewConfiguration
(static) synchronize(object) → {$k.ViewConfiguration}
Update the semantic element from the JSON string / literal object
| Name | Type | Description |
|---|---|---|
object | object | JSON string or literal object |
- Since
- 4.1.0
- Deprecated
- A manual synchronization/update is not supported anymore. Please use bult-in update action with viewconfig.postActionScriptAttribute.
Got an synchronisation error
- Type:
- $k.
ViewConfiguration
bookmarkIdentifier() → {string|undefined}
- Since
- 6.1.0
The bookmark identifier
- Type:
- string |
undefined
configElement() → {$k.Instance}
- Since
- 4.1.0
- Type:
- $k.
Instance
createView(domainModelopt) → {$k.View}
Create a new view with the given domain model from this configuration. This is useful primarily for debug and test scripts.
| Name | Type | Attributes | Description |
|---|---|---|---|
domainModel | $k. | <optional> |
- Since
- 5.4.1
- Type:
- $k.
View
label() → {string}
Get the view's label if applicable
- Since
- 6.1.0
The label
- Type:
- string
render(semanticElementopt, keyFilteropt, detailFilteropt) → {object}
Render the element as a literal object
| Name | Type | Attributes | Description |
|---|---|---|---|
semanticElement | $k. | <optional> | |
keyFilter | object | <optional> | Alternative 1 (preferred): a $k.JSONRenderContext Alternative 2 (compatibility only): A filter. See $k.JSONRenderContext.prototype.setFilters(). |
detailFilter | object | <optional> | Only used if the key filter is not a $k.JSONRenderContext. See $k.JSONRenderContext.prototype.setLevelsOfDetail() |
- Since
- 4.1.0
- Deprecated
- This function is deprecated and might be removed in future releases
- See
- $k.ViewConfiguration#synchronize
The rendered object
- Type:
- object
setRenderContext(renderContextObject)
Set render context
| Name | Type | Description |
|---|---|---|
renderContextObject | object |
- Since
- 5.3.0
- Deprecated
- This function is deprecated and might be removed in future releases
toJSON()
- Deprecated
- This function is deprecated and might be removed in future releases