A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.nativescript.org/api/class/SegmentedBar below:

SegmentedBar | API - NativeScript

Represents a UI SegmentedBar component.

Summary Constructors Properties

Gets or sets the items of the SegmentedBar.

selectedBackgroundColor: Color

Gets or sets the selected background color of the SegmentedBar component.

Gets or sets the selected index of the SegmentedBar component.

selectedIndexChangedEvent

Static

selectedIndexChangedEvent: string

String value used when hooking to the selectedIndexChanged event.

Methods
_addArrayFromBuilder(name: string, value: any[]): void
Parameter Default Description name

string

value

any[]

Returns void

_addChildFromBuilder(name: string, value: any): void

Called for every child element declared in xml.

Parameter Default Description name

string

value

any

Returns void

on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void

A basic method signature to hook an event listener (shortcut alias to the addEventListener method).

Parameter Default Description eventNames

string

String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").

callback

Callback function which will be executed when event is raised.

thisArg

any

An optional parameter which will be used as `this` context for callback execution.

Returns void

on(
  event: "selectedIndexChanged",
  callback: (args: SelectedIndexChangedEventData) => void,
  thisArg?: any
): void

Raised when the selected index changes.

Parameter Default Description event

"selectedIndexChanged"

callback

(args: SelectedIndexChangedEventData) => void

thisArg

any

Returns void


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4