mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
- Use path mappings in tsconfig.json to resolve module typings - Only use ambient mobules for global API's - Move single-file modules to a subdir with the same name so that we can provide a hand-written typing next to it (via package.json) - Delete all mentions of tns-core-modules.d.ts - Delete reference d.ts assembly build steps. Not needed anymore. - HACK! Use a <reference> for global typings in application.d.ts to avoid publishing a separate @types/tns-core-modules package. - Rename declarations.d.ts to tns-core-modules.d.ts to preserve JS project mappings in references.d.ts (the only place we use those)
71 lines
1.8 KiB
TypeScript
71 lines
1.8 KiB
TypeScript
/**
|
|
* Contains the TimePicker class.
|
|
*/
|
|
import { View, Property } from "ui/core/view";
|
|
|
|
/**
|
|
* Represents an time picker.
|
|
*/
|
|
export class TimePicker extends View {
|
|
/**
|
|
* 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.
|
|
*/
|
|
android: any /* android.widget.TimePicker */;
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
ios: any /* UIDatePicker */;
|
|
|
|
/**
|
|
* Gets or sets the time hour.
|
|
*/
|
|
hour: number;
|
|
|
|
/**
|
|
* Gets or sets the time minute.
|
|
*/
|
|
minute: number;
|
|
|
|
/**
|
|
* Gets or sets the time.
|
|
*/
|
|
time: Date;
|
|
|
|
/**
|
|
* Gets or sets the max time hour.
|
|
*/
|
|
maxHour: number;
|
|
|
|
/**
|
|
* Gets or sets the max time minute.
|
|
*/
|
|
maxMinute: number;
|
|
|
|
/**
|
|
* Gets or sets the min time hour.
|
|
*/
|
|
minHour: number;
|
|
|
|
/**
|
|
* Gets or sets the min time minute.
|
|
*/
|
|
minMinute: number;
|
|
|
|
/**
|
|
* Gets or sets the minute interval.
|
|
*/
|
|
minuteInterval: number;
|
|
}
|
|
|
|
export const hourProperty: Property<TimePicker, number>;
|
|
export const maxHourProperty: Property<TimePicker, number>;
|
|
export const minHourProperty: Property<TimePicker, number>;
|
|
|
|
export const minuteProperty: Property<TimePicker, number>;
|
|
export const maxMinuteProperty: Property<TimePicker, number>;
|
|
export const minMinuteProperty: Property<TimePicker, number>;
|
|
|
|
export const timeProperty: Property<TimePicker, Date>;
|
|
export const minuteIntervalProperty: Property<TimePicker, number>;
|