DialogNumber

interface DialogNumber { type: 'number' label: string value: number min?: number max?: number step?: number unit?: string }

A number typed in by the user


Properties

type: 'number'

Always "number"

label: string

Text in front of the control

value: number

Initial value

min: number

Lowest value (default unbounded)

max: number

Highest value (default unbounded)

step: number

The value snaps to multiples of it. Without it the value is free and the arrow keys change it by 1

unit: string

Shown behind the value