-
Notifications
You must be signed in to change notification settings - Fork 1
/
newPage004.ts
35 lines (29 loc) · 976 Bytes
/
newPage004.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
import NewPage004Design from 'generated/pages/newPage004';
import Calendar from 'components/Calendar';
import specialDays from './specialDays';
import { Route, Router } from '@smartface/router';
import { withDismissAndBackButton } from '@smartface/mixins';
export default class NewPage004 extends withDismissAndBackButton(NewPage004Design) {
calendar = new Calendar({ useRangeSelection: false });
constructor(private router?: Router, private route?: Route) {
super({});
this.calendar.changeCalendar('tr');
this.addChild(this.calendar);
this.calendar.top = 100;
this.calendar.onDaySelect = (data) => {
console.log(data);
};
this.button1.onPress = () => {
this.calendar.setSpecialDays(specialDays);
};
}
onShow() {
super.onShow();
// this.addChild(this.calendar);
// this.calendar.setSelectedDate({"month":11,"year":2017,"day":1});
this.calendar.applyLayout();
}
onLoad() {
super.onLoad();
}
}