Header menu logo fable-electron-docs-api

Options Type

Constructors

Constructor Description

Options(items, ?select, ?highlight, ?selectedStyle, ?overlayStyle, ?showArrowButtons, ?mode, ?continuous)

Full Usage: Options(items, ?select, ?highlight, ?selectedStyle, ?overlayStyle, ?showArrowButtons, ?mode, ?continuous)

Parameters:
    items : ScrubberItem[] - An array of items to place in this scrubber.
    ?select : int -> unit - Called when the user taps an item that was not the last tapped item.
    ?highlight : int -> unit - Called when the user taps any item.
    ?selectedStyle : SelectedStyle - Selected item style. Can be background, outline or none. Defaults to none.
    ?overlayStyle : OverlayStyle - Selected overlay item style. Can be background, outline or none. Defaults to none.
    ?showArrowButtons : bool - Whether to show arrow buttons. Defaults to false and is only shown if items is non-empty.
    ?mode : Mode - Can be fixed or free. The default is free.
    ?continuous : bool - Defaults to true.

Returns: Options
items : ScrubberItem[]

An array of items to place in this scrubber.

?select : int -> unit

Called when the user taps an item that was not the last tapped item.

?highlight : int -> unit

Called when the user taps any item.

?selectedStyle : SelectedStyle

Selected item style. Can be background, outline or none. Defaults to none.

?overlayStyle : OverlayStyle

Selected overlay item style. Can be background, outline or none. Defaults to none.

?showArrowButtons : bool

Whether to show arrow buttons. Defaults to false and is only shown if items is non-empty.

?mode : Mode

Can be fixed or free. The default is free.

?continuous : bool

Defaults to true.

Returns: Options

Instance members

Instance member Description

this.continuous

Full Usage: this.continuous

Defaults to true.

this.highlight

Full Usage: this.highlight

Called when the user taps any item.

this.items

Full Usage: this.items

An array of items to place in this scrubber.

this.mode

Full Usage: this.mode

Can be fixed or free. The default is free.

this.overlayStyle

Full Usage: this.overlayStyle

Selected overlay item style. Can be background, outline or none. Defaults to none.

this.select

Full Usage: this.select

Called when the user taps an item that was not the last tapped item.

this.selectedStyle

Full Usage: this.selectedStyle

Selected item style. Can be background, outline or none. Defaults to none.

this.showArrowButtons

Full Usage: this.showArrowButtons

Whether to show arrow buttons. Defaults to false and is only shown if items is non-empty.

Type something to start searching.