Hi Justin,
Greetings from Syncfusion Support.
Q1: We have validated your reported query “Show
spinner on crud actions”
and achieved it by using actionBegin
and dataBound events with showSpinner and hideSpinner
methods. Please refer to the following sample.
Sample: https://stackblitz.com/edit/show-spinner-on-crud-actions?file=index.js
Service: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Service-1598592068
onActionBegin(args) {
if (
args.requestType === 'eventCreate' ||
args.requestType == 'eventChange' ||
args.requestType == 'eventRemove'
) {
this.scheduleObj.showSpinner();
}
}
onDataBound(args) {
this.scheduleObj.hideSpinner();
}
Q2: We hided the tooltip while update the event by making use of hover
and resizeStop events of our scheduler using below code and same can be
available in above shared sample.
onResizeStop(args) {
this.hideScheduleTooltip();
}
hideScheduleTooltip() {
if (document.querySelector('.e-schedule-event-tooltip ')) {
var
tooltipObj = document.querySelector('.e-schedule-event-tooltip ')
.ej2_instances[0];
if (tooltipObj) {
// Hide tooltip
tooltipObj.element.style.display = 'none';
}
}
}
onHover(args) {
if (args.element.classList.contains('e-appointment')) {
this.hideScheduleTooltip();
}
}
API: https://ej2.syncfusion.com/react/documentation/api/schedule/#showspinner
https://ej2.syncfusion.com/react/documentation/api/schedule/#hidespinner
Kindly try with the above sample and get back to us if
you need any further assistance.
Regards,
Vinitha