CodeCoupler Costa Components Launcher
Visualizes a component registry and can trigger loading the components defined in the registry.
It creates a list of the components in the form:
The manifest name is by default initially hidden. The user can click on an expand button to show the names. Otherwise the names will be shown in tooltips.
Groups will be displayed in popovers.
The overall inner structure of the component consists of the ul list shown above and two
additional div elements that provide buttons to show and hide the names:
Depending on its state, the root element can have the class collapsed or expanded. The div
elements with the classes toggler-collapse and toggler-expand are shown and hidden in turn.
The root element gets the class empty if no li element exists or all elements are not visible to
the current user because of authentication restrictions. Otherwise, it receives the filled class.
The two toggle elements are hidden if the root element has the empty class.
Authentication
The identity parameter can be used to pass a reactive object from an authentication module. This
object is monitored for changes. Any li elements that the user does not have access to are
assigned the restricted class and are hidden by default:
Styling
The component provides only the bare minimum of styling. It simply ensures that names are shown and hidden, that the correct toggle button is displayed (or both hidden if empty), and that the mouse pointer changes when you hover over the list items or the toggle button.
You will need to style it yourself to display it as desired. Here's an example of how to display the list vertically, which you could use in a sidebar:
Popover
The popovers will be rendered into the body of the document. For this reason, in addition to the
popover class, you can assign an additional class to the popovers using the popoverClasses prop
to target it more precisely.
Popovers contains specific inner elements.
Header:
Body:
List inside body:
Colorizing arrow depending on placement:
Tooltips
The tooltips will be rendered into the body of the document. For this reason, in addition to the
tootip class, you can assign an additional class to the popovers using the tooltipClasses prop
to target it more precisely.
Tooltips contains specific inner elements.
Body:
Colorizing arrow depending on placement:
Options Reference
identity-
Reactive identity object aof an authentication module. This identity will be used to check restrictions. If a component have restrictions that do not match the identity, the component will not be shown.
registry-
The registry to visualize
popoverClassesandtooltipClasses-
The popoivers and tooltips will be rendered into the
bodyof the document. For this reason, you can assign an additional classes to the popver and tooltip elements to target them more precisely. loadOverrides-
Override for every start definition object that will be used to load a component.
- `defaultGroupManifest:
-
The default name and icon for groups.
collapsed-
Is by default
true. If set tofalsethe list will be shown expanded initaially. toggler-
Is by default
true. If set tofalsethe toggle button to expand/collapse the list will be hidden. debug-
If set to true the tooltips and popovers will never close. Useful for debuging styling.