Internal documentation only
This page has been marked as draft.
Icons (SVG Sprite)
Simple shortcode to include icons from SVG sprites outside of menus.
{{< icon "settings" >}}
Example Copied
Result | Usage |
---|---|
{{< icon "content_copy" >}} |
|
{{< icon "control_point_duplicate" >}} |
|
{{< icon "error_outline" >}} |
|
{{< icon "keyboard_arrow_down" >}} |
|
{{< icon "more_vert" >}} |
|
{{< icon "settings" >}} |
|
{{< icon "warning" >}} |
About the symbols Copied
The different glyphs are added grouped on .svg
files within the folder /assets/sprites/
of the theme folder.
At this moment, there is only a material.svg
, where we’re adding just those icons that we need, from the Material UI icons library.
https://fonts.google.com/icons?selected=Material+Icons, getting the SVG source code and adding it to the sprite file.
Use cases Copied
Some real use cases extracted from obcerv content:
Creating a dashboard Copied
To create a new dashboard:
- On the main page of the Dashboards app, click New. This opens the New dashboard window.
- Click to change the general settings rather than:
- Click
to change the general settings.
- On the Dashboard name field, set the file name for the dashboard.
- On the Folder field, select which folder the dashboard will be saved in.
- To make the dashboard accessible to anyone in your organization, tick the Is public? checkbox.
- To enable future changes to the dashboard, tick the Editable by default checkbox.
- Add panels to the dashboard. For details, see “Adding panels or widgets to a dashboard”.
- Click Save.
Using query filters Copied
You can filter data to quickly find what you are interested in.
- Under Data type, select whether to use Metrics or Logs.
- Depending on the data type, you can:
Data type | Description |
---|---|
Metrics |
|
Logs | In the From field, select entities and set conditions for your query. You’ll see a prompt to start the expression with { , followed by a list of available entities. |
- When needed, add another query by clicking . You can have both metrics and logs shown in the visualisation, instead of:
- When needed, add another query by clicking
. You can have both metrics and logs shown in the visualisation.
Managing dashboards Copied
On the main page of the Dashboards app, click beside each dashboard to see options such as exporting, copying, moving, or deleting it.
On the main page of the Dashboards app, click
beside each dashboard to see options such as exporting, copying, moving, or deleting it.
Use within shortcodes / partials Copied
In those files, you can take advantage of the use of the SVG Sprites by using directly HTML markup, rather than the icon shortcode.
E.g.: <svg class="icon warning"><use xlink:href="#warning"></use></svg>
for getting warning icon.
Alternative to SVG sprites, using images Copied
In some cases, we may need/prefer to continue uploading images to add visual icons.
In those cases, please make use of the class icon
, to apply the styles accordingly for inline image icons:
E.g.: 
will add an
image inline.
You can make it a little bit bigger by adding the class icon-l
:
E.g.:
icon image inline.
E.g.:
icon image inline.