UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

29 lines (28 loc) 1.42 kB
import { Font } from '../styling/font'; import { SegmentedBarItemBase, SegmentedBarBase, selectedIndexProperty, itemsProperty, selectedBackgroundColorProperty } from './segmented-bar-common'; import { colorProperty, fontInternalProperty } from '../styling/style-properties'; import { Color } from '../../color'; export * from './segmented-bar-common'; export declare class SegmentedBarItem extends SegmentedBarItemBase { _update(): void; } export declare class SegmentedBar extends SegmentedBarBase { [selectedIndexProperty.getDefault]: () => number; [selectedIndexProperty.setNative]: (value: number) => void; [itemsProperty.getDefault]: () => SegmentedBarItem[]; [itemsProperty.setNative]: (value: SegmentedBarItem[]) => void; [selectedBackgroundColorProperty.getDefault]: () => UIColor; [selectedBackgroundColorProperty.setNative]: (value: UIColor | Color) => void; [colorProperty.getDefault]: () => UIColor; [colorProperty.setNative]: (value: Color | UIColor) => void; [fontInternalProperty.getDefault]: () => Font; [fontInternalProperty.setNative]: (value: Font) => void; nativeViewProtected: UISegmentedControl; private _selectionHandler; createNativeView(): UISegmentedControl; initNativeView(): void; disposeNativeView(): void; get ios(): UISegmentedControl; setSelectedTextColor(bar: UISegmentedControl): void; private getColorForIOS; }