Skip to content

1681-engine / ui / ListOptions

Interface: ListOptions ​

Defined in: src/ui/List.ts:6

Extends ​

Properties ​

barColor? ​

ts
optional barColor?: number | null;

Defined in: src/ui/ScrollView.ts:14

The scroll bar's colour; null hides it (default white at 0.4 alpha).

Inherited from ​

ScrollViewOptions.barColor


barWidth? ​

ts
optional barWidth?: number;

Defined in: src/ui/ScrollView.ts:15

Inherited from ​

ScrollViewOptions.barWidth


dragSlop? ​

ts
optional dragSlop?: number;

Defined in: src/ui/ScrollView.ts:12

How far a press must move before it is a drag instead of a tap (default 6 px).

Inherited from ​

ScrollViewOptions.dragSlop


gap? ​

ts
optional gap?: number;

Defined in: src/ui/List.ts:8

Between rows (default 0).


height ​

ts
height: number;

Defined in: src/ui/ScrollView.ts:8

Inherited from ​

ScrollViewOptions.height


padding? ​

ts
optional padding?: number;

Defined in: src/ui/List.ts:10

Inside the list's edge (default 0).


stretch? ​

ts
optional stretch?: boolean;

Defined in: src/ui/List.ts:12

Rows as wide as the list, less the padding (default true).


wheelStep? ​

ts
optional wheelStep?: number;

Defined in: src/ui/ScrollView.ts:10

Pixels a wheel notch scrolls at most (default 48).

Inherited from ​

ScrollViewOptions.wheelStep


width ​

ts
width: number;

Defined in: src/ui/ScrollView.ts:7

Inherited from ​

ScrollViewOptions.width

Released under the MIT License.