canvas-editor-pdf
Version:
pdf exporter to canvas-editor
67 lines (65 loc) • 1.63 kB
TypeScript
import { IElementPosition } from '../../../../interface/Element';
import { DrawPdf } from '../../DrawPdf';
export interface IDatePickerLang {
now: string;
confirm: string;
return: string;
timeSelect: string;
weeks: {
sun: string;
mon: string;
tue: string;
wed: string;
thu: string;
fri: string;
sat: string;
};
year: string;
month: string;
hour: string;
minute: string;
second: string;
}
export interface IDatePickerOption {
onSubmit?: (date: string) => any;
}
interface IRenderOption {
value: string;
position: IElementPosition;
dateFormat?: string;
}
export declare class DatePicker {
private draw;
private options;
private now;
private dom;
private renderOptions;
private isDatePicker;
private pickDate;
private lang;
constructor(draw: DrawPdf, options?: IDatePickerOption);
private _createDom;
private _bindEvent;
private _setPosition;
isInvalidDate(value: Date): boolean;
private _setValue;
private _getLang;
private _setLangChange;
private _update;
private _toggleDateTimePicker;
private _setDatePick;
private _setTimePick;
private _scrollIntoView;
private _preMonth;
private _nextMonth;
private _preYear;
private _nextYear;
private _now;
private _toggleVisible;
private _submit;
formatDate(date: Date, format?: string): string;
render(option: IRenderOption): void;
dispose(): void;
destroy(): void;
}
export {};