Hi all,
I was wondering whether it would be possible to support the following scenario within the LCA framework:
- In one application, assign one of the standard LCA icons to a DOM instance
- In another application, retrieve and display that same icon for the same DOM instance within LCA
The goal would be to have a consistent visual representation of DOM instances across different applications, without each application needing to define or manage its own icon mapping.
Is there currently a supported way to achieve this, or would this require an extension to the framework?
Thanks in advance!
Hi Jens,
This is definitely possible using DOM instances:
Assigning the icons can be done using a form component with the DOM instance or a DOM definition as data. The definition will have to have a string field with all possible icons as discrete values using an enum field. Actions can then be used to save the selected icon in the (new) instance.
To retrieve the instances themselves, GQI can be used.
The assigned icons can then be visualized by making use of HTML shapes in templates. You can add a <i> element with a class matching one of our icons and it will render as such.
Example
Data

Shape config

Rendered icon in a grid component
