Scroller
Description
<vaadin-scroller> provides a simple way to enable scrolling when its content is overflowing.
<vaadin-scroller>
<div>Content</div>
</vaadin-scroller>
The following attributes are exposed for styling:
| Attribute | Description |
|---|---|
focus-ring |
Set when the element is focused using the keyboard. |
focused |
Set when the element is focused. |
overflow |
Set to top, bottom, start, end, all of them, or none. |
Properties
scrollDirection
Type: "horizontal" | "none" | "vertical" | undefined
This property indicates the scroll direction. Supported values are vertical, horizontal, none.
When scrollDirection is undefined scrollbars will be shown in both directions.