BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
Hello,
For my implementation I receive 2 strange errors: one for event tooltip and another for custom editor (even if I set it as empty element for testing)
This is my implementation:
const eventTemplate = useCallback((props: any) => {
return <CalendarEvent event={props} />
}, [])
const eventTooltip = useCallback((props: any) => {
return <EventTooltip event={props} />
}, [])
const editorTemplate = useCallback((props: any) => {
return <div />
}, [])
return (
<div className='schedule-control-section'>
<div className='col-lg-12 control-section'>
<div className='control-wrapper'>
<ScheduleComponent
cssClass='room-schedule'
width='100%'
height='calc(100vh - 300px)'
timeScale={{ interval }}
selectedDate={new Date()}
timezone='UTC'
startHour={dayInterval.min as string}
endHour={dayInterval.max as string}
currentView='Day'
headerIndentTemplate={indentTemplate}
resourceHeaderTemplate={resourceHeaderTemplate}
eventRendered={eventRendered}
showQuickInfo={false}
editorTemplate={editorTemplate}
eventSettings={{
dataSource: data,
enableTooltip: true,
tooltipTemplate: eventTooltip,
fields: {
startTime: { title: 'From', name: 'start_time' },
endTime: { title: 'To', name: 'end_time' },
},
}}
group={{ resources: ['Rooms'] }}>
<ResourcesDirective>
<ResourceDirective
field='room_id'
title='Rooms'
name='Rooms'
allowMultiple={true}
dataSource={resources}
idField='resourceId'
/>
</ResourcesDirective>
<ViewsDirective>
<ViewDirective option='Day' eventTemplate={eventTemplate} />
</ViewsDirective>
<Inject services={[Day, Resize, DragAndDrop]} />
<ToolbarItemsDirective>
<ToolbarItemDirective name='DateRangeText' align='Left' />
</ToolbarItemsDirective>
</ScheduleComponent>
</div>
</div>
</div>
)
this is the error for tooltip when mouse leave the event
and this error appears when I double click on event
Thanks in advance for any help understanding the cause.
Also, I have one more question, ow can I handle the resize and drag&drop events to save to DB?
Hi Florin,
Based on your shared details, we understand that you're encountering two errors:
And you've set up empty callback functions for editorTemplate.
We've attempted to reproduce these issues using a simple
Scheduler sample based on your provided code snippet. However, we were unable
to replicate the errors you're facing. We tested this using version 28.2.5 in
both Edge and Chrome browsers.
To help us investigate further and provide more accurate
assistance, we kindly request the following information:
Regarding your question about handling resize and drag & drop events to save to the database, please refer to our documentation on data binding in the React Schedule component. You can find detailed information here:
Data
binding in React Schedule component | Syncfusion
Regards,
Suba R.