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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Editor Popup - customise footer buttons

Thread ID:

Created:

Updated:

Platform:

Replies:

144508 May 9,2019 12:51 PM UTC May 10,2019 10:59 AM UTC Angular - EJ 2 1
loading
Tags: Schedule
Oliver
Asked On May 9, 2019 12:51 PM UTC

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')



Karthigeyan Krishnamurthi [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon