Hi,
Currently, when I console log the data from the dataSource, it shows all the events in an array. I was wondering how would I retrieve an array of events based on current view? For example, if my current view is "Day", then I only retrieve data for "Day."
This is my code for reference:
<ScheduleComponent
eventSettings={{
dataSource:data,
fields: {
subject: { name:"Subject", validation: { required:true } },
},
location: {
name:"Location",
validation: {
required:true,
},
},
enableTooltip:true,
}}
selectedDate={newDate(2022, 9, 9)}
actionComplete={(e) =>eventAction(e)}
cellDoubleClick={cellDoubleClickEvent}
navigating={(e) =>navigateEvent(e)}
>
<Injectservices={[Day, Week, WorkWeek, Month, Agenda]}/>
</ScheduleComponent>