| 1 |
/// <reference types="backbone" /> |
| 2 |
import { DescriptionView } from './widget_description'; |
| 3 |
import { CoreDescriptionModel } from './widget_core'; |
| 4 |
export interface ISerializedDate { |
| 5 |
/** |
| 6 |
* Full year |
| 7 |
*/ |
| 8 |
year: number; |
| 9 |
/** |
| 10 |
* Zero-based month (0 means January, 11 means December) |
| 11 |
*/ |
| 12 |
month: number; |
| 13 |
/** |
| 14 |
* Day of month |
| 15 |
*/ |
| 16 |
date: number; |
| 17 |
} |
| 18 |
export declare function serialize_date(value: Date | null): ISerializedDate | null; |
| 19 |
export declare function deserialize_date(value: ISerializedDate | null): Date | null; |
| 20 |
export declare class DatePickerModel extends CoreDescriptionModel { |
| 21 |
static serializers: { |
| 22 |
value: { |
| 23 |
serialize: typeof serialize_date; |
| 24 |
deserialize: typeof deserialize_date; |
| 25 |
}; |
| 26 |
}; |
| 27 |
defaults(): Backbone.ObjectHash; |
| 28 |
} |
| 29 |
export declare class DatePickerView extends DescriptionView { |
| 30 |
render(): void; |
| 31 |
/** |
| 32 |
* Update the contents of this view |
| 33 |
* |
| 34 |
* Called when the model is changed. The model may have been |
| 35 |
* changed by another view or by a state update from the back-end. |
| 36 |
*/ |
| 37 |
update(options?: any): void; |
| 38 |
events(): { |
| 39 |
[e: string]: string; |
| 40 |
}; |
| 41 |
private _update_value; |
| 42 |
private _picker_change; |
| 43 |
private _picker_focusout; |
| 44 |
private _datepicker; |
| 45 |
} |
| 46 |
//# sourceMappingURL=widget_date.d.ts.map |