openhab / org.openhab.ui.habpanel

OUTDATED repo - HABPanel has moved to the openhab-webui repo!

Home Page:https://github.com/openhab/openhab-webui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

widget "Button" (function request)

servim opened this issue · comments

Hi! I'm not sure what I'm writing in the right place, sorry :)
The button is a powerful widget, I like it very much, I use it to navigate between panels, displaying the value of some element on it. The only thing I really miss is the dynamic icon for the selected item.
Example: on the button icon - network. If the network element is turned on, the icon is blue, if off, gray. We see the gray icon, there is no network, click on the widget and switch to the panel - the network where the timeline widget will show the history of the network element.
Now I have to have 2 widgets, the dummy shows the state of the element, the button switches the panel, and I would like two in one!
PS I apologize for the bad (Google) English. Maybe I did not say well what I want, then ask me again. Earlier I already tried to ask about it.

Will be considered as a standard feature, but you also achieve this with a template widget or a custom widget with an HTML link to the other dashboard (<a>) and a properly configured <widget-dummy> inside).

Something like:

<a href="#/view/otherdashboard" style="position: absolute; left: 0; top: 0; width: 100%; height: 100%;"
   ng-init='model={ "name": "Network", "item": "Network_Item_Name", "iconset": "freepik-gadgets", "icon": "wifi-router", "icon_size": 64 }'>

	<widget-dummy ng-model="model"></widget-dummy>

</a>

Check https://community.openhab.org/t/solved-where-to-start-with-habpanel/50940/2?u=ysc for essential topics on the community forum, or post in https://community.openhab.org/c/apps-services/habpanel if you need help.

Thanks, that solved my problem. But anyway, I'll be glad to see this addition in the standard "Button" widget.
Offtopic: Formatting does not work in the "Button" widget.