I need add event pop up on click of button rather than on calendar click

I have integrated ejs-schedule in my nuxt app but i dont want calendar first instead i want only add-event pop up UI control on click of a button in my application. How can i achieve that 

1 Reply 1 reply marked as answer

HB Hareesh Balasubramanian Syncfusion Team October 29, 2020 08:33 AM UTC

Hi Archna, 

Greetings from Syncfusion Support..! 

We have prepared a sample based on your shared query using openEditor public method of the Scheduler which can be viewed from the following link. 

    btnClick: function (event) { 
      this.$router.push("/about"); 
      setTimeout(function () { 
        let scheduleObj = document.getElementById("Schedule").ej2_instances[0]; 
        let cellData = { 
          startTime: new Date(2018, 1, 15, 10, 0), 
          endTime: new Date(2018, 1, 15, 11, 0), 
        }; 
        scheduleObj.openEditor(cellData, "Add"); 
      }, 1000); 
    }, 

Kindly refer to the below UG link, 

Kindly try the above solution and get back to us if you need any further assistance. 

Regards, 
Hareesh 


Marked as answer
Loader.
Up arrow icon