galloween / custom-sidebar-v2

Home Assistant (HACS) plugin that allows you to rearrange, hide, and add sidebar menu items. Refactor of https://github.com/Villhellm/custom-sidebar
21 stars 13 forks source link

Icons not showing for new_item #8

Closed silviudc closed 2 years ago

silviudc commented 2 years ago

I have this configured in my sidebar-order.json

{ "new_item": true, "item": "OpenEVSE", "href": "http://192.168.0.77", "icon:": "mdi:car-electric", "order": 8 }

And it is not showing the icon, I have tried clearing the browser cache, reboot HA, etc and the same. image

Also is there a way to have the new_item objects open up in a new browser window?

galloween commented 2 years ago

Also is there a way to have the new_item objects open up in a new browser window?

yes, add "target": "_blank"

galloween commented 2 years ago

you also may be able to open your link in an iframe, see here: https://github.com/galloween/custom-sidebar-v2#combine-with-iframe-panel-to-show-external-content-inside-home-assitant

it does not always work, though

silviudc commented 2 years ago

Thanks for the suggest, the iframe works fine and the icon is showing also this way :)