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

4.0 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 width 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 mulitple device resolutions. For example: "/static/floorplans/floor-0.jpg, /static/floorplans/floor-0@2x.jpg 2x"

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)