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?
optionallower:number
Defined in: nodes/adjustment.ts:30
The minimum value
onValueChanged()?
optionalonValueChanged: (value) =>void
Defined in: nodes/adjustment.ts:40
Callback when the value changes
Parameters
| Parameter | Type |
|---|---|
value | number |
Returns
void
pageIncrement?
optionalpageIncrement:number
Defined in: nodes/adjustment.ts:36
The increment for page up/down
pageSize?
optionalpageSize:number
Defined in: nodes/adjustment.ts:38
The page size (usually 0 for scales)
stepIncrement?
optionalstepIncrement:number
Defined in: nodes/adjustment.ts:34
The increment for arrow keys
upper?
optionalupper:number
Defined in: nodes/adjustment.ts:32
The maximum value
value?
optionalvalue:number
Defined in: nodes/adjustment.ts:28
The current value