Hey there, i am trying to create my first widgets. Actually I know how to display an items-value, and how to display a string: {{itemValue(config.id1)}}.
But how could i display a choosen Icon?
{{itemValue(config.id1)}} gives me just the string of the choosen Icon but the icon is not displayed.
Thanks for replying - that could be a really interesting ressource.
Perhaps i am just blind or too stupid to understand but i did not find an answer to my original question how to display an Icon that is choosen via the settings dialog. Could you help me again?
But it is a workaround. What i want to do is the following:
I want to create a Widget in which i could choose an Icon from an iconset. I want to reuse this widget lot of times - so the icon has to be generic choosable. In the settings i could create an “icon-variable” and then could choose the Icon - but instead of the icon only the text/Name of the icon is displayed.
When editing a page click on the “add widget” drop down menu and on the bottom half is the ‘custom widget’ area with a little cog icon which you can click to take you here:
I have a problem with a item from widget settings. its defined as item with the ID “temperature_item”.
I tried something, but i dont get the item inside an ng-init for a knob working. But what works is a openhab item. here the code for the “item” from widget settings item
Can somebody provide simple how-to for developing more complicated custom widgets using “oc-lazy-load” for people, unfamiliar with Angular? And what Angular version used in latest OpenHAB 2?
For example I want to make widget, that support calls via JsSIP. I know how to do it in vanilla js/html, but Angular for me is a dark forest. And all I need is some variables with binding to UI, functions called by clicking on button and JsSIP callbacks support. I haven’t time to learn all Angular only for this. Simple doc will be very useful for people like me and brought a lot of new widgets to gallery.