openhab/openhab-core

Sitemap widget grid

Opened this issue · 3 comments

Extending the idea of button widgets inside a buttongrid, we could probably have a generic widget grid that can contain any widget control laid out in the same manner.

Furthermore, perhaps the grid can be made "responsive", ie it can turn into fewer columns on smaller screens. But this is a separate idea.

This would lead to many questions.
How do you render an element inside a cell ? An element has many componenets, an icon, a label, a value and one or many controls.
What will be the size of each cell ? If you put for example an Image element in a cell, should the cell be adjusted to the size of the image (impacting the other cells on the same line) or should the image be downscaled to enter in the standard and fixed cell size ?

@openhab/core-maintainers : please add the "sitemap" tag.

The idea is we still maintain a fixed grid size.
For "long" widgets, you'd need to add a "colspan" attribute, so yes... it does get a lot more complicated!