For a couple of weeks, I’ve been working to implement a custom design for my mobile and desktop dashboard.
As you can see in the video, the left side always stays the same and only the right side changes. I achieve that by creating different views, where the left side always contains the same cards and the other one has different cards based on the path.
For the left side, I use decluttering-card custom component, so I only have it once. Even though that saves me a lot, by not having to edit for every single view, the UI is a bit heavy, slow, and jumpy.
Do you guys know any way to have only one view that contains the left cards, and when clicking certainelement, different cards will be loaded on the right side?
I’ve never used decluttering card, but is it that you think makes things slow?
If so you could try defining the left hand side in a separate yaml file and !include that in each view. You’d still only have one copy to edit, but it wouldn’t depend on any card ‘building/rendering’ it.
I tried this, but it only works when I don’t have the right-side cards. This is the code for one of the views where I have the sidebar and the cards that should be on the right.