1. Component library

Scrollbar

Version:

The Scrollbar component is a behavior. This means that the component does not do anything by itself. Instead, it adds capabilities to another component.

The Scrollbar behavior is only a relevant behavior for the ListControl. You add the Scrollbar behavior by adding Scrollbar to the list of behaviors in the Behaviors property of the ListControl.

The Scrollbar behavior adds a scrollbar to the ListControl when the ListControl has a fixed height and more items than it can display without scrolling, given that height. The Scrollbar behavior adds the scrollbar to the ListControl itself – this scrollbar has nothing to do with other scrollbars that the browser may or may not display.

If you have suggestions for improving this article, let us know!