123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- declare namespace Jt.Timepicker {
-
- export interface Options {
-
- appendTo?: string | ((clickedElement) => string);
- /**
- * Default: null
- * A class name to apply to the HTML element that contains the timepicker dropdown.
- */
- className?: string;
- /**
- * Default: false
- * Close the timepicker when the window is scrolled. (Replicates <select> behavior.)
- */
- closeOnWindowScroll?: boolean;
- /**
- * Default: false
- * Disable typing in the timepicker input box; force users to select from list.
- * More information https://github.com/jonthornton/jquery-timepicker/issues/425#issuecomment-133262458
- */
- disableTextInput?: boolean;
- /**
- * Default: []
- * Disable selection of certain time ranges. Input is an array of time pairs, like `[['3:00am', '4:30am'], ['5:00pm', '8:00pm']].
- * The start of the interval will be disabled but the end won't.
- */
- disableTimeRanges?: Array<string[]>;
- /**
- * Default: false
- * Disables the onscreen keyboard for touch devices. There can be instances where Firefox or Chrome have touch events enabled
- * (such as on Surface tablets but not actually be a touch device. In this case disableTouchKeyboard will prevent the timepicker
- * input field from being focused.
- * More information: https:
- */
- disableTouchKeyboard?: boolean;
-
- durationTime?: string | Date | (() => string | Date);
-
- forceRoundTime?: boolean;
-
- maxTime?: Date | string;
-
- minTime?: Date | string;
-
- noneOption?: boolean | string | string[] | NoneObject;
-
- orientation?: string;
-
- roundingFunction?: (seconds: number, settings: Options) => number;
-
- scrollDefault?: string | Date | number | {};
-
- selectOnBlur?: boolean;
-
- show2400?: boolean;
-
- showDuration?: boolean;
-
- showOn?: string[];
-
- showOnFocus?: boolean;
-
- step?: number;
-
- stopScrollPropagation?: boolean;
-
- timeFormat?: string | ((givenDate: Date) => string);
-
- typeaheadHighlight?: boolean;
-
- useSelect?: boolean;
- }
- export interface NoneObject {
- label: string;
- value: string;
- className: string;
- }
- }
|