mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
// Type definitions for bootstrap.timepicker
|
|
// Project: https://github.com/jdewit/bootstrap-timepicker
|
|
// Definitions by: derikwhittaker <https://github.com/derikwhittaker>, Heather Booker <https://github.com/heatherbooker>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="jquery"/>
|
|
|
|
interface TimepickerOptions {
|
|
defaultTime?: string|boolean|Date;
|
|
disableFocus?: boolean;
|
|
disableMousewheel?: boolean;
|
|
explicitMode?: boolean;
|
|
icons?: TimepickerIconOptions;
|
|
isOpen?: boolean;
|
|
minuteStep?: number;
|
|
modalBackdrop?: boolean;
|
|
secondStep?: number;
|
|
showSeconds?: boolean;
|
|
showInputs?: boolean;
|
|
showMeridian?: boolean;
|
|
template?: string|boolean;
|
|
appendWidgetTo?: string;
|
|
maxHours?: number;
|
|
snapToStep?: boolean;
|
|
}
|
|
|
|
interface TimepickerIconOptions {
|
|
up?: string;
|
|
down?: string;
|
|
}
|
|
|
|
interface TimepickerTime {
|
|
value?: string;
|
|
hours?: number;
|
|
minutes?: number;
|
|
seconds?: number;
|
|
meridian?: string;
|
|
}
|
|
|
|
interface JQuery {
|
|
timepicker(): JQuery;
|
|
timepicker(methodName: string): JQuery;
|
|
timepicker(methodName: string, params: any): JQuery;
|
|
timepicker(options: TimepickerOptions): JQuery;
|
|
}
|
|
|
|
interface JQueryEventObject {
|
|
time?: TimepickerTime;
|
|
}
|