import{_ as d,a as l,b as o,ag as a,p as t,g as e}from"./chunks/framework.BcrMLAmg.js";const p=JSON.parse('{"title":"ScrollBar","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/ScrollBar.md","filePath":"references/elements/ScrollBar.md","lastUpdated":1757925952000}'),n={name:"references/elements/ScrollBar.md"};function c(s,r,h,i,u,m){return o(),l("div",null,r[0]||(r[0]=[a('
A ScrollBar element that can be attached to other elements to control their scroll properties
Extends: VisualElement
| Property | Type | Default | Description |
|---|---|---|---|
| value | number | 0 | Current scroll value |
| min | number | 0 | Minimum scroll value |
| max | number | 100 | Maximum scroll value |
| step | number | 1 | Step size for scroll operations |
| dragMultiplier | number | 1 | How fast the ScrollBar moves when dragging |
| symbol | string | " | " Symbol used for the ScrollBar handle |
| backgroundSymbol | string | "\\127" | Symbol used for the ScrollBar background |
| symbolBackgroundColor | color | black | Background color of the ScrollBar handle |
| backgroundSymbol | string | "\\127" | Symbol used for the ScrollBar background |
| minValue | number | function | 0 |
| maxValue | number | function | 100 |
| orientation | string | vertical | Orientation of the ScrollBar ("vertical" or "horizontal") |
| handleSize | number | 2 | Size of the ScrollBar handle in characters |
| Method | Returns | Description |
|---|---|---|
| ScrollBar:attach | ScrollBar | Attaches the ScrollBar to an element's property |
| ScrollBar:updateAttachedElement | ScrollBar | Updates the attached element's property based on the ScrollBar value |
Attaches the ScrollBar to an element's property
ScrollBar self The ScrollBar instanceUpdates the attached element's property based on the ScrollBar value
ScrollBar self The ScrollBar instance