/
uncontrolled.jsx
54 lines (47 loc) · 1.05 KB
/
uncontrolled.jsx
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
47
48
49
50
51
52
53
54
import * as React from 'react';
import Paper from '@material-ui/core/Paper';
import { ViewState } from '@devexpress/dx-react-scheduler';
import {
Scheduler,
DayView,
WeekView,
Appointments,
Toolbar,
ViewSwitcher,
} from '@devexpress/dx-react-scheduler-material-ui';
import { appointments } from '../../../demo-data/month-appointments';
export default class Demo extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
data: appointments,
};
}
render() {
const { data } = this.state;
return (
<Paper>
<Scheduler
data={data}
height={660}
>
<ViewState
defaultCurrentDate="2018-07-25"
defaultCurrentViewName="Week"
/>
<DayView
startDayHour={9}
endDayHour={18}
/>
<WeekView
startDayHour={10}
endDayHour={19}
/>
<Toolbar />
<ViewSwitcher />
<Appointments />
</Scheduler>
</Paper>
);
}
}