-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #450 from FlowFuse/398-ui-page-icon
UI Page - Allow for definition of icons
- Loading branch information
Showing
6 changed files
with
83 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<script type="text/html" data-help-name="ui_group"> | ||
<script type="text/html" data-help-name="ui-group"> | ||
<p>Group</p> | ||
<p>If a <b>Class</b> is specified, it will be added to the parent card. This way you can style the card and the elements inside it with custom CSS. The Class can be set at runtime by setting a <code>msg.className</code> string property.</p> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<script type="text/html" data-help-name="ui-page"> | ||
<p>UI Page</p> | ||
<p>A single screen of content within your Dashboard.</p> | ||
<h3>Properties</h3> | ||
<dl class="message-properties"> | ||
<dt> | ||
Name | ||
<span class="property-type">string</span> | ||
</dt> | ||
<dd> | ||
Description of "Name" | ||
</dd> | ||
<dt> | ||
UI | ||
<span class="property-type">ui-base</span> | ||
</dt> | ||
<dd> | ||
Description of "Name" | ||
</dd> | ||
<dt> | ||
Path | ||
<span class="property-type">string</span> | ||
</dt> | ||
<dd> | ||
Description of "Name" | ||
</dd> | ||
<dt> | ||
Icon | ||
<span class="property-type">string</span> | ||
</dt> | ||
<dd> | ||
The icon to render alongside the page's name in the sidebar of the UI. | ||
We use the Material Design Icons, you can see a full list of the available icons <a href="https://pictogrammers.com/library/mdi/">here</a>. | ||
You do not need to include the `mdi-` prefix, just the name of the icon. | ||
</dd> | ||
<dt> | ||
Theme | ||
<span class="property-type">ui-theme</span> | ||
</dt> | ||
<dd> | ||
Choose from one of the available themes for the page. | ||
You can also create and customise your own themes. | ||
</dd> | ||
<dt> | ||
Layout | ||
<span class="property-type">grid | fixed | notebook</span> | ||
</dt> | ||
<dd> | ||
Choose form one of the available Dashboard Layouts. | ||
You can read more about our layouts <a href="https://dashboard.flowfuse.com/layouts/grid.html">here</a>. | ||
</dd> | ||
<dt> | ||
Class | ||
<span class="property-type">string</span> | ||
</dt> | ||
<dd> | ||
Any custom CSS classes you want to append to the page's styling when rendered. | ||
</dd> | ||
</dl> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters