openhab-docs/_addons_uis/org.openhab.ui/doc/components/oh-canvas-layout.md

5.3 KiB

title component label description source prev
oh-canvas-layout - Canvas Layout oh-canvas-layout Canvas Layout Position widgets on a canvas layout with arbitrary position and size down to pixel resolution https://github.com/openhab/openhab-webui/edit/main/bundles/org.openhab.ui/doc/components/oh-canvas-layout.md /docs/ui/components/

oh-canvas-layout - Canvas Layout

toc

Position widgets on a canvas layout with arbitrary position and size down to pixel resolution

Configuration

Layout Settings

Grid size in pixels used to snap content (default 20)

Screen Settings

Screen width in pixels (default 1280) Screen height in pixels (default 720) Scale content to screen width (can lead to unexpected styling issues) (default false) The URL of the image to display as background The src-set attribute of background image element to take into account multiple device resolutions. For example: "/static/floorplans/floor-0.jpg, /static/floorplans/floor-0@2x.jpg 2x"

SVG Embedding

Embed SVG image directly into the page (default false) Flashes SVG elements on hovering in run-mode as well (default false)

Appearance

Hide navigation bar on top when page is displayed (You can additionally hide the sidebar using its pin icon) (default false) Don't show a menu icon in the top left corner when the sidebar is closed (default false) Show a fullscreen icon on the top right corner (default false)

Canvas items shadow

Shadow applied to box elements (box-shadow CSS syntax). Shadow applied to text elements or font icons (text-shadow CSS syntax) Shadow applied to raster or SVG image elements (filter: drop-shadow() CSS syntax)