I have a hard time to figure out how to add some vue data in vue dialog content
I want to make by own - totally custom dialog for vue grid edit.
For example - I have showEdit method like this
showEdit(args){
let rowObj= this.$refs.Grid.ej2Instances.getRowObjectFromUID(closest(args.target, '.e-row').getAttribute('data-uid'));
let data = rowObj.data;
let dm = new DataManager({
url: '/api/account/form_template/'+data.id,
adaptor: new UrlAdaptor,
}).executeQuery(new Query()).then((e) => {
this.editedItem = e.result.data // an array of data ex: {id:1, name:test,'price:123'}
this.$refs.footerDialog.show(true); // show the dialog
});
and footer dialog defined like this
<ejs-dialog ref="footerDialog"
:header='dialog_header'
:target='dialog_target'
:width='dialog_width'
:buttons='dialog_buttons'
:visible='dialog_visible'
:content='contentTemplate'
:close="dialog_close">
</ejs-dialog>
How should I present my contentTemplate vue to be able to access editedItem in there?
Is it even possible?
contentTemplate example
<v-text-field v-model ="editedItem.name"></v-text-field>
<v-text-field v-model="editedItem.price"></v-text-field>
etc...