Allow loading Home Assistant elements manually #10354
Unanswered
jackwilsdon
asked this question in
Dashboard
Replies: 1 comment
-
I wrote a blog post about this a while back: https://developers.home-assistant.io/blog/2020/10/02/lazyMoreInfo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It'd be nice to be able to use existing Home Assistant elements (e.g.
ha-card
,ha-fab
, etc) when creating custom panels.Code splitting / lazy loading currently means that this isn't possible, as Home Assistant's custom elements are only loaded when they are needed.
An API like this would be nice to have:
Allowing the use of HA's elements like so:
I'm not quite sure how we'd go about implementing this. A naive approach could be as follows:
I don't know how well this would play with Home Assistant's existing code splitting though - we might end up with a bundle per component (which is obviously bad).
Beta Was this translation helpful? Give feedback.
All reactions