How to change the appearance of a library element according to its custom properties - ericferon/glpi-archimap GitHub Wiki
Pre-conditions
- You are creating or modifying a library (see How to create or modify a library stored on the GLPI repository)
- You have linked the library shape to a GLPI table and you have filled the field "CSS Class" (see How to link a library element to a GLPI table)
Steps
-
Right-click on the library shape and select the menu "Link appearance to CSS class"
If the menu "Link appearance to CSS class" doesn't appear, you have probably not assigned a name to the "CSS Class" field

-
A new window opens, showing the shape with a combo box containing the first of a list of all possible CSS Class names :

-
Select a CSS Class name in the list

-
The shape, at the top of the window, changes its appearance if a style is already assigned to this CSS Class name, to reflect the style.
Each aspect, below the combo box, is positioned on the current value.

-
You can select or deselect an aspect of the style, and choose the aspect value (color, width, alignment, etc).
When an aspect is selected, it will be added to the style or it will modify the style accordingly.
When an aspect is deselected, it will be removed from the style.
-
Save (or quit)
Post-conditions
-
You have linked a CSS Class name to a change of the shape's appearance.
When an aspect is selected in the style, the chosen value will impact all the shapes on all the diagrams with this CSS Class name, if the CSS Class name, in the list of CSS Class defined for the library element (see How to link a library element to a GLPI table), is not followed by another CSS Class of which the same aspect is set to another value. In this last case, the current aspect value will be superseded by the last one.
When an aspect is deselected in the style, the style will have no impact on any shape, in any diagram.