We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Editor Popup - customise footer buttons

Hello ,
on Essential JS2 for Angular . is there a way to customise editor footer on scheduler?
Ideally we would like to have our own buttons on the footer (instead on the 'Delete', 'Save' and 'Cancel')



1 Reply

KK Karthigeyan Krishnamurthi Syncfusion Team May 10, 2019 10:59 AM UTC

Hi Oliver,   
 
Greetings from Syncfusion. 
 
We have prepared the below sample to add custom footer buttons. 
 
public eventAdd(e) { 
    const data: Object = this.scheduleObj.getCellDetails(this.scheduleObj.getSelectedElements()) as Object; 
    const eventData: { [key: string]: Object } = this.scheduleObj.eventWindow.getObjectFromFormData('e-schedule-dialog'); 
    this.scheduleObj.eventWindow.convertToEventData(data as { [key: string]: Object }, eventData); 
    eventData.Id = this.scheduleObj.eventBase.getEventMaxID() as number + 1; 
    this.scheduleObj.addEvent(eventData); 
    this.dialogClose(); 
  } 
  public eventDelete(e) { 
    const eventData: { [key: string]: Object } = this.scheduleObj.activeEventData.event as any; 
    this.scheduleObj.deleteEvent(eventData); 
    this.dialogClose(); 
  } 
  public editEvent(e) { 
    debugger; 
    const eventData: { [key: string]: Object } = this.scheduleObj.eventWindow.getObjectFromFormData('e-schedule-dialog'); 
    eventData.Id = this.currentEvent.Id; 
    this.scheduleObj.saveEvent(eventData); 
    this.dialogClose(); 
  } 
 
 
Regards, 
Karthi 


Loader.
Live Chat Icon For mobile
Up arrow icon