---
title: oh-canvas-layer - Canvas Layer
component: oh-canvas-layer
label: Canvas Layer
description: Layer for grouping widgets in canvas
source: https://github.com/openhab/openhab-webui/edit/main/bundles/org.openhab.ui/doc/components/oh-canvas-layer.md
prev: /docs/ui/components/
---
# oh-canvas-layer - Canvas Layer
[[toc]]
Layer for grouping widgets in canvas
## Configuration
### General
Layer name (for editor)
Pre-load layer contents so that switching layer visibility is faster and dynamic widgets are immediately displayed in their current state. Initial page load might be longer (default false)
### Visibility Options
Enter an expression to hide the widget conditionally or false to never display it
Role(s) this widget will be visible to (in the code view you can restrict to specific users with the user:userid
syntax).
PLEASE NOTE: this should NOT be considered a security feature! Items can still be controlled by other means.