From cd72f919aab7e923c406f0aae16397cc3a6b0a40 Mon Sep 17 00:00:00 2001 From: Eiko Wagenknecht Date: Fri, 26 Feb 2021 18:11:22 +0100 Subject: [PATCH] Add link to material items (#916) Signed-off-by: Eiko Wagenknecht --- .../web/src/assets/definitions/widgets/plan/index.js | 2 +- .../web/src/assets/definitions/widgets/standard/cards.js | 2 +- .../web/src/assets/definitions/widgets/standard/cells.js | 2 +- .../src/assets/definitions/widgets/standard/listitems.js | 2 +- .../web/src/assets/definitions/widgets/tabs/index.js | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/plan/index.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/plan/index.js index 247a05222..b9c0c96a8 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/plan/index.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/plan/index.js @@ -27,7 +27,7 @@ export const OhPlanMarkerDefinition = () => new WidgetDefinition('oh-plan-marker pi('item', 'Item', 'The item whose state to display on this marker') ]) .paramGroup(pg('icon', 'Icon'), [ - pt('icon', 'Icon', 'Use oh:iconName (openHAB icon) or f7:iconName (Framework7 icon)'), + pt('icon', 'Icon', 'Use oh:iconName (openHAB icon), f7:iconName (Framework7 icon) or material:iconName (Material icon)'), pb('iconUseState', 'Icon depends on state', 'Use the state of the item to get a dynamic icon (for openHAB icons only)'), pn('iconSize', 'Icon Size', 'Size of the icon in pixels (40 by default)'), pt('iconColor', 'Icon Color', 'Color of the icon (for Framework7/Material icons); use expression for dynamic colors') diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js index 5a68bfac1..777ca2b60 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cards.js @@ -24,7 +24,7 @@ export const OhLabelCardDefinition = () => new WidgetDefinition('oh-label-card', pt('background', 'Background style', 'Background style (in CSS "background" attribute format)'), pt('fontSize', 'Font Size', 'Font size (e.g. "34px")'), pt('fontWeight', 'Font Weight', 'Font weight (e.g. "normal" or "bold")'), - pt('icon', 'Icon', 'Use oh:iconName (openHAB icon) or f7:iconName (Framework7 icon)'), + pt('icon', 'Icon', 'Use oh:iconName (openHAB icon), f7:iconName (Framework7 icon) or material:iconName (Material icon)'), pt('iconColor', 'Icon Color', 'Not applicable to openHAB icons').a(), pn('iconSize', 'Icon Size', 'Size of the icon in px').a(), pb('iconUseState', 'Icon depends on state', 'Use the state of the item to get a dynamic icon (for openHAB icons only)').a(), diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cells.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cells.js index 0815af6f6..e543a227b 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cells.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/cells.js @@ -11,7 +11,7 @@ export const CellParameters = () => [ pt('title', 'Title', 'Title of the cell'), pt('subtitle', 'Subtitle', 'Subtitle of the cell'), pt('footer', 'Footer', 'Footer of the cell'), - pt('icon', 'Icon', 'Use oh:iconName (openHAB icon) or f7:iconName (Framework7 icon)'), + pt('icon', 'Icon', 'Use oh:iconName (openHAB icon), f7:iconName (Framework7 icon) or material:iconName (Material icon)'), pt('color', 'Highlight Color', 'Color to use when highlighted'), pt('on', '"On" expression', 'Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable.').a() ] diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/listitems.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/listitems.js index a87905d65..36d9592b9 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/listitems.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/standard/listitems.js @@ -9,7 +9,7 @@ export const ListItemParameters = () => [ pt('title', 'Title', 'Title of the item'), pt('subtitle', 'Subtitle', 'Subtitle of the item'), pt('after', 'After', 'Text to display on the opposite side of the item (set either this or a badge)').a(), - pt('icon', 'Icon', 'Use oh:iconName (openHAB icon) or f7:iconName (Framework7 icon)'), + pt('icon', 'Icon', 'Use oh:iconName (openHAB icon), f7:iconName (Framework7 icon) or material:iconName (Material icon)'), pt('iconColor', 'Icon Color', 'Not applicable to openHAB icons').a(), pb('iconUseState', 'Icon depends on state', 'Use the state of the item to get a dynamic icon (for openHAB icons only)').a() ] diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/tabs/index.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/tabs/index.js index 409c1c1af..3dc3a67b1 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/tabs/index.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/tabs/index.js @@ -4,8 +4,8 @@ import { WidgetDefinition, pt } from '../helpers' export const OhTabDefinition = () => new WidgetDefinition('oh-tab', 'Tab', 'Displays a widget in a tab') .params([ - pt('title', 'Title', 'The title of the tab'), - pt('icon', 'Icon', 'The icon on the tab: use f7:iconName (Framework7 icon)'), - pt('page', 'Page', 'The page to display').c('page'), - pt('pageConfig', 'Page Configuration', 'The parameters (props) to configure the page, if any').c('props') + pt('title', 'Title', 'Title of the tab'), + pt('icon', 'Icon', 'Use f7:iconName (Framework7 icon) or material:iconName (Material icon)'), + pt('page', 'Page', 'Page to display').c('page'), + pt('pageConfig', 'Page Configuration', 'Parameters (props) to configure the page, if any').c('props') ])