UNPKG

1.17 kBTypeScriptView Raw
1import { View } from '../core/view';
2import { Property } from '../core/properties';
3import { ItemsSource } from './list-picker-common';
4
5/**
6 * Represents an list picker.
7 */
8export class ListPicker extends View {
9 /**
10 * Gets the native [android.widget.NumberPicker](http://developer.android.com/reference/android/widget/NumberPicker.html) that represents the user interface for this component. Valid only when running on Android OS.
11 */
12 android: any /* android.widget.NumberPicker */;
13
14 /**
15 * Gets the native iOS [UIPickerView](http://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDatePicker_Class/index.html) that represents the user interface for this component. Valid only when running on iOS.
16 */
17 ios: any /* UIPickerView */;
18
19 /**
20 * Gets or sets the selected index.
21 */
22 selectedIndex: number;
23
24 /**
25 * Gets or set the items collection of the ListPicker.
26 * The items property can be set to an array or an object defining length and getItem(index) method.
27 */
28 items: any;
29}
30
31export const selectedIndexProperty: Property<ListPicker, number>;
32export const itemsProperty: Property<ListPicker, any[] | ItemsSource>;