Hi
I try to make a template widget that looks like the Dummy-widget, but on click it opens a new tab (to trigger a tasker-task over “Tasker URL Launcher”).
Unfortunately I can’t even make the backdrop-icon working.
<div>
<a>{{config.bg_icon}}</a>
<a>{{config.bg_iconset}}</a>
<div class="box-content dummy">
<widget-icon backdrop="true" iconset="config.bg_iconset" icon="config.bg_icon" center="config.bg_center"></widget-icon>
<div class="dummy-content">
<span class="center">{{config.label}}</span>
</div>
</div>
</div>
The resulting HTML looks like this
<div>
<a class="ng-binding"></a>
<a class="ng-binding">smarthome-set</a>
<div class="box-content dummy">
<widget-icon backdrop="true" iconset="config.bg_iconset" icon="config.bg_icon" center="config.bg_center" class="ng-isolate-scope"><div class="icon backdrop" ng-class="{backdrop: backdrop, center: center, inline: inline}"><!-- ngIf: backdrop --><img ng-if="backdrop" height="100%" ng-class="{ colorize: colorize }" class="icon-tile-backdrop ng-scope colorize" ng-src="assets/icons/smarthome-set/undefined.svg" src="assets/icons/smarthome-set/undefined.svg"><!-- end ngIf: backdrop --><!-- ngIf: !backdrop --></div></widget-icon>
<div class="dummy-content">
<span class="center ng-binding">TestLabel</span>
</div>
</div>
</div>
note that the Icon-Set and the label are altered corectly.
Do you have a hint for me?
ThxStartSonos.widget.json (1.1 KB)