Skip to main content

Type Alias: AdjustmentProps

AdjustmentProps = object

Defined in: nodes/adjustment.ts:26

Props for the Adjustment virtual element.

Used to declaratively configure the adjustment for adjustable widgets such as Scale, Scrollbar, ScaleButton, SpinButton, and ListBox.

Example

<GtkScale>
<x.Adjustment
value={50}
lower={0}
upper={100}
stepIncrement={1}
onValueChanged={(v) => console.log("Value:", v)}
/>
</GtkScale>

Properties

lower?

optional lower: number

Defined in: nodes/adjustment.ts:30

The minimum value


onValueChanged()?

optional onValueChanged: (value) => void

Defined in: nodes/adjustment.ts:40

Callback when the value changes

Parameters

ParameterType
valuenumber

Returns

void


pageIncrement?

optional pageIncrement: number

Defined in: nodes/adjustment.ts:36

The increment for page up/down


pageSize?

optional pageSize: number

Defined in: nodes/adjustment.ts:38

The page size (usually 0 for scales)


stepIncrement?

optional stepIncrement: number

Defined in: nodes/adjustment.ts:34

The increment for arrow keys


upper?

optional upper: number

Defined in: nodes/adjustment.ts:32

The maximum value


value?

optional value: number

Defined in: nodes/adjustment.ts:28

The current value