Skip to main content

Type Alias: ScaleMarkProps

ScaleMarkProps = object

Defined in: jsx.ts:264

Props for the ScaleMark virtual element.

Used to declaratively add marks to a GtkScale slider.

Example

<GtkScale>
<x.ScaleMark value={0} label="Min" />
<x.ScaleMark value={50} label="Mid" />
<x.ScaleMark value={100} label="Max" />
</GtkScale>

Properties

label?

optional label: string | null

Defined in: jsx.ts:270

Optional label text (supports Pango markup)


position?

optional position: Gtk.PositionType

Defined in: jsx.ts:268

Position of the mark (TOP or BOTTOM for horizontal, LEFT or RIGHT for vertical)


value

value: number

Defined in: jsx.ts:266

The value at which to place the mark