Hi,
I’ve finally started playing with the new OH UI and have created my first widget.
It’s not perfect, but will do as a start.
However, I’m having issues getting it to size correctly and/or popup/popover.
My widget:
However, trying to put it on the overview page only works if the new widget is added directly.
What I want is to have it as a component of the cell or popup or popover, but I get the following issues:
I’m presuming there are some (un)documented settings somewhere to fix this (probably “style:”), but everything i’ve tried has literally made no difference.
no solution from my side but I think that many of us “semi-eperienced” user want to create new pages and have the need for more styling parameters. As an example I want to create a bunch of buttons without gaps.
Thus I need to control the spacing between rows and between columns.
I read the f7-docs but I struggle how to start from here. This is also not about creating a personal widget, but controling the structure of a page.
So I would also very thankful if someone can give us a startup tip
Hi,
I’ve got it working a bit better with some css style settings, but it looks totally crap on a phone.
However, as I can still use BasicUI I can use the Android app.
Initially this new UI is going to replace my OpenHab UI, which looks even worse on my phone.
I’d prefer to get it looking right on both, but I suspect the limitations of the OH UI and Framework7 will mean I can’t have both.
I my experience, nearly everything can be achieved with the current posibilites - theres no limit with css styling parameters (besides pseudo-classes)
But as you say it is rough to digg into the f7-docs and abstract the shown examples into usable ‘YAML code’ which OH understands.
It might be helpfull to create multiple ‘Create your own widget’ tutorials with different difficulty levels to help others understanding the underlying logic.
Putting them in columns (inside a row) and remove the gap would work.
I think for your goal, it would be a better way, creating 2 widgets with different base-components. I think you’ve used either a f7-block or a f7-card here?!, which will get messed up in a popup very quick.
For the use in a popup I would recommend you, using the f7-page as a base component, which uses the full width and height, without applying extra styling.
Hi,
The card is made up of a summary and details cards.
YAML below (as stated earlier, the only caveat is that it looks crap on a phone and is only tested on Chrome atm)
I can’t work out f7 either that’s why I’m hoping to get some great work by others and try and unpack and learn but I’m only at the beginning of that journey
I’ve made two widgets from your yaml - is the idea the summary card is on a page then clicking it the whole thing appears? At the moment the summary shows but the pop up just greys out the page like something modal is supposed to show