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

edit template

I have to make a custom event edit template for my schedule

I made workScheduleEdit.vue for it

im my workSchedule.vue  main file - I have:

import WorkScheduleEdit from './WorkScheduleEdit'

Vue.component('WorkScheduleEdit', WorkScheduleEdit);


editorTemplate: function(e) {
                return {
                    template: WorkScheduleEdit,
                   
                };
            },
          

All works, but!

in workSchedule.vue I have "account"  object - 

computed: 
        mapGetters({
            account: 'auth/getAccount',
            editor() {
                return this.$refs.myQuillEditor.quill;
            }
        }),


1. I need to pass this Account object into my Edit but dont know how I can do it
2.  second issue - I cannot use  $t method of VueI18n - in WorkScheduleEdit it returns undefined






3 Replies

OL Oleg April 8, 2019 03:45 PM UTC

Ok, seems too complicated.

Another question - is there away to disable the editor?
I want to open my own custom dialog on cell doubleclick 

I use cellDoubleClick event but after my custom dialog opens, syncfusion event editor opens too.
I tried readonly =false - but this case no cellDoubleClick events 
cellClick not an option - because no way to move- resize event after - any cell click will always open my dialog.


OL Oleg April 8, 2019 10:31 PM UTC

Ok, I found the answer


onPopupOpen: function(args) {
            args.cancel = true;  //disable the original edit popup

       },


KK Karthigeyan Krishnamurthi Syncfusion Team April 9, 2019 05:17 AM UTC

Hi Oleg, 
 
Greetings from Syncfusion. 
 
We are happy that you have found the solution. 
 
Please let us know if you need further assistance. 
 
Regards, 
Karthi 


Loader.
Live Chat Icon For mobile
Up arrow icon