|
[grid]
<ejs-grid :dataSource="data" height=350>
<e-columns>
<e-column headerText=template column' width='150' textAlign='Center' :template='cTemplate'></e-column>
. . .
</e-columns>
</ejs-grid>
export default Vue.extend({
data: () => {
return {
data: employeeData,
cTemplate: function () {
return { template : columntempVue}
}
};
}
});
[column template view]
<template>
<div class="link">
//here you can give router link
<router-link :to="{ path: '/abc'}" replace></router-link>
</div>
</template> |
<template>
<div class="d-flex justify-content-center">
<router-link to="/somewhere">
Hi
</router-link>
</div>
</template>
<script>
export default {
name: 'componentActions
}
</script>
<template>
<div>
<ejs-grid :dataSource="data">
<e-columns>
<e-column
headerText="Actions"
textAlign="center"
class="text-center"
:template="actionTemplate"
>
</e-column>
</e-columns>
</ejs-grid>
</div>
</template>
<script>
import ComponentActions from '@/components/ComponentActions'
export default {
name: 'rootComponent',
data() {
return {
actionTemplate: () => {
return {
template: ComponentActions
}
},
...
}
}
}
</script>
<style lang="scss" scoped></style>
Hi Lajos,
Sorry for the inconvenience.
We have checked your reported issue and we would like to let you know that we have rendered the template as a separate Vue component in our EJ2, so the configured router in the Vue Application will not be accessible inside the template which is the default behavior of Vue. The router-link inside the Vue Component Template needs to be configured for proper rendering. For further reference regarding this issue please refer the below link.Please get back to us if you need further details on this.Regards,Jesus Arockia Sankaran S