Header menu logo fable-electron-docs-api

Options Type

Constructors

Constructor Description

Options(segments, ?segmentStyle, ?mode, ?selectedIndex, ?change)

Full Usage: Options(segments, ?segmentStyle, ?mode, ?selectedIndex, ?change)

Parameters:
    segments : SegmentedControlSegment[] - An array of segments to place in this control.
    ?segmentStyle : SegmentStyle - Style of the segments:
    ?mode : Mode - The selection mode of the control:
    ?selectedIndex : int - The index of the currently selected segment, will update automatically with user interaction. When the mode is multiple it will be the last selected item.
    ?change : int * bool -> unit - Called when the user selects a new segment.

Returns: Options
segments : SegmentedControlSegment[]

An array of segments to place in this control.

?segmentStyle : SegmentStyle

Style of the segments:

?mode : Mode

The selection mode of the control:

?selectedIndex : int

The index of the currently selected segment, will update automatically with user interaction. When the mode is multiple it will be the last selected item.

?change : int * bool -> unit

Called when the user selects a new segment.

Returns: Options

Instance members

Instance member Description

this.change

Full Usage: this.change

Called when the user selects a new segment.

this.mode

Full Usage: this.mode

The selection mode of the control:

this.segmentStyle

Full Usage: this.segmentStyle

Style of the segments:

this.segments

Full Usage: this.segments

An array of segments to place in this control.

this.selectedIndex

Full Usage: this.selectedIndex

The index of the currently selected segment, will update automatically with user interaction. When the mode is multiple it will be the last selected item.

Type something to start searching.