-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
46 lines (37 loc) · 1.01 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/// <reference types="leaflet" />
import * as L from 'leaflet';
declare module 'leaflet' {
namespace Control {
interface CalendarOptions {
id?: number;
position?: ControlPosition;
minDate?: string;
maxDate?: string;
value?: string;
onSelectDate: Function;
triggerFunctionOnLoad?: boolean;
nextButton?: boolean;
backButton?: boolean;
marginLeft?: string;
marginRight?: string;
marginTo?: string;
marginBotton?: string;
}
export class Calendar extends L.Control {
options: CalendarOptions;
constructor(options?: CalendarOptions);
addTo(map: L.Map): this;
removeFrom(map: L.Map): this;
open(): this;
triggerOnSelectedDate(): this;
show(): this;
hide(): this;
isHide(): boolean;
next(): void;
back(): void;
}
}
namespace control {
export function calendar(options?: Control.CalendarOptions): Control.Calendar;
}
}