Switch Widget with Custom Icon and Active/Inactive states in Template Widget

Hey all,

Please i need a small tip regarding the widget switch and how to add a custom icon to this widget in a habpanel template. i used the following script without success:

<div ng-init='model_switch={"light_switch": "Light Switch", "item": "liviing_light1", "hidelabel": true, "hideonoff": true, "iconset": "Custom icon", "icon":html/habpanel/assets/icons/classic/bulb.png","icon_size": "62" }'>
<widget-switch   ng-model="model_switch" />

Thank you in advance

What script?

It was hidden as i posted it as an HTML code. now it’s showing normally.