I’m trying (hard) to migrate to MainUI (currently using a combo of HABPanel and Sitemap) and figure out how I can make it serve my needs.
I’ve created some widgets using ECharts as a part of this. While I’m reasonably happy with the widgets themselves, they scale terribly. Basically, it comes down to the fact that ECharts mix relative and absolute units when you define stuff, and I can’t find a way around that - which means that they will only ever “work” when at or close to the “design size”. It’s really depressing, because they could otherwise have been great.
Anyway, they are too big to effectively give any overview, at the same time they need to be big to show all the details. So, the only “solution” I can find is to make a simplified, smaller version of them with the most basic information, and then make them expand when clicked to show the full detail. I would need them to expand to somewhere near “design size”, not full screen - which will again scale them wrong.
I’ve been trying to look at oh-cell
to try to find a way, but so far with no luck. I’m also hesitant to use a cell since it has limits to where it can be used - it feels like using a card would be more flexible. But regardless of cell/card, the whole F7 expandable functionality seems to require learning a lot more about F7 and their use of CSS classes. I’m hesitant to spend that time, since I don’t really need that knowledge for anything else in my life, so I’m pretty sure I will forget it quickly - and I’m not even sure it will do what I want to.
What is the best approach - or maybe, what is a workable approach to do this? I want only the “simplified” widget to be displayed when it’s not expanded, and only the “full” widget to be displayed when expanded. At the same time, I want to somehow make it all in one “widget” so that they use the same configuration/props, and can be used as “one package”.