ScrollViewOptions
import type { ScrollViewOptions } from 'pixi-silk/ui/panel';
Options of ScrollView.
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
contentHeight? | number | Height of what scrolls. Set it later with ScrollView.contentHeight. Default 0. | ui/panels/ScrollView.ts:22 |
drag? | "none" | "touch" | "all" | Which pointers drag the content: touch (fingers and pens, default), all, or none. Mice scroll with the wheel and the scrollbar. | ui/panels/ScrollView.ts:27 |
height? | number | View height. Default 320. | ui/panels/ScrollView.ts:20 |
overscroll? | boolean | Stretch past the ends and spring back. Default true. | ui/panels/ScrollView.ts:29 |
theme? | Partial<PanelTheme> | Colours that replace parts of PANEL_THEME. The view only draws the scrollbar. | ui/panels/ScrollView.ts:31 |
ticker? | Ticker | null | Ticker driving the motion. Default Ticker.shared. null for manual ScrollView.tick. | ui/panels/ScrollView.ts:33 |
width? | number | View width. Default 240. | ui/panels/ScrollView.ts:18 |