Hello,
i have problem wit column templates. When the template is a string it works, but when is a vue component it throws in console:
[Vue warn]: Error in mounted hook: "TypeError: str.replace is not a function"
Until (some) last update everything worked, but since yesterday it stopped.
i think is something with versions because:
ej2-base is 16.2.47
ej2-vue-base is 16.2.46 and uses ej2-base 16.2.46
ej2-vue-grids is 16.2.46 which uses ej2-base 16.2.47 and ej2-vue-base 16.2.46 (which uses older ej2-base)
I've created a test project to reproduce
a snippets from it:
in HelloWorld.vue:
...
<e-column field='OrderID' :template='cTemplate' headerText='Order ID' textAlign='Right' width=90></e-column>
...
cTemplate: function() {
return {
template: Vue.component("columnTemplate", {
template: `<div><a rel='nofollow' href="">{{ID}}</a></div>`,
data: function() {
return {
data: {}
};
}
})
}
}
in packages.json i have only following packages
"dependencies": {
"@syncfusion/ej2-vue-grids": "^16.2.48",
"vue": "^2.5.17"
},
the test project is created using new vue/cli and your getting started, i'm testing with yarn serv
i had problems with css include so it is commented
Attachment:
test_5a7f46b5.zip