|
const onActionBegin = (args) => {
if (args.requestType === 'toolbarItemRendering') {
args.items = args.items.slice(3);
}
};
return (<div className='schedule-control-section'>
<div className='col-lg-9 control-section'>
<div className='control-wrapper'>
<ScheduleComponent width='100%' height='650px' ref={scheduleObj} selectedDate={new Date(2021, 1, 15)} actionBegin={onActionBegin} eventSettings={{ dataSource: data }}>
<ViewsDirective>
<ViewDirective option='Day'/>
<ViewDirective option='Week'/>
<ViewDirective option='WorkWeek'/>
<ViewDirective option='Month'/>
</ViewsDirective>
<Inject services={[Day, Week, WorkWeek, Month, Resize, DragAndDrop]}/>
</ScheduleComponent>
|