1 | import { View } from '../core/view';
|
2 | import { Property } from '../core/properties';
|
3 |
|
4 | /**
|
5 | * Represents an time picker.
|
6 | */
|
7 | export class TimePicker extends View {
|
8 | /**
|
9 | * Gets the native [android.widget.TimePicker](http://developer.android.com/reference/android/widget/TimePicker.html) that represents the user interface for this component. Valid only when running on Android OS.
|
10 | */
|
11 | android: any /* android.widget.TimePicker */;
|
12 |
|
13 | /**
|
14 | * Gets the native iOS [UIDatePicker](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.
|
15 | */
|
16 | ios: any /* UIDatePicker */;
|
17 |
|
18 | /**
|
19 | * Gets or sets the time hour.
|
20 | */
|
21 | hour: number;
|
22 |
|
23 | /**
|
24 | * Gets or sets the time minute.
|
25 | */
|
26 | minute: number;
|
27 |
|
28 | /**
|
29 | * Gets or sets the time.
|
30 | */
|
31 | time: Date;
|
32 |
|
33 | /**
|
34 | * Gets or sets the max time hour.
|
35 | */
|
36 | maxHour: number;
|
37 |
|
38 | /**
|
39 | * Gets or sets the max time minute.
|
40 | */
|
41 | maxMinute: number;
|
42 |
|
43 | /**
|
44 | * Gets or sets the min time hour.
|
45 | */
|
46 | minHour: number;
|
47 |
|
48 | /**
|
49 | * Gets or sets the min time minute.
|
50 | */
|
51 | minMinute: number;
|
52 |
|
53 | /**
|
54 | * Gets or sets the minute interval.
|
55 | */
|
56 | minuteInterval: number;
|
57 |
|
58 | /**
|
59 | * Gets or set the UIDatePickerStyle of the date picker in iOS 13.4+. Defaults to 0.
|
60 | * Valid values are numbers:
|
61 | * - 0: automatic (system picks the concrete style based on the current platform and date picker mode)
|
62 | * - 1: wheels (the date picker displays as a wheel picker)
|
63 | * - 2: compact (the date picker displays as a label that when tapped displays a calendar-style editor)
|
64 | * - 3: inline (the date pickers displays as an inline, editable field)
|
65 | */
|
66 | iosPreferredDatePickerStyle: number;
|
67 | }
|
68 |
|
69 | export const hourProperty: Property<TimePicker, number>;
|
70 | export const maxHourProperty: Property<TimePicker, number>;
|
71 | export const minHourProperty: Property<TimePicker, number>;
|
72 |
|
73 | export const minuteProperty: Property<TimePicker, number>;
|
74 | export const maxMinuteProperty: Property<TimePicker, number>;
|
75 | export const minMinuteProperty: Property<TimePicker, number>;
|
76 |
|
77 | export const timeProperty: Property<TimePicker, Date>;
|
78 | export const minuteIntervalProperty: Property<TimePicker, number>;
|
79 |
|
80 | export const iosPreferredDatePickerStyleProperty: Property<TimePicker, number>;
|