Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148642 | Oct 29,2019 04:34 AM UTC | Oct 30,2019 10:14 AM UTC | Vue | 1 |
![]() |
Tags: Data Grid |
<ejs-grid id="Grid" :toolbar="toolbar" :toolbarClick="clickHandler" :dataSource="data" :allowPaging="true" ref="grid"></ejs-grid>
<script>
export default {
data() {
return {
toolbar: [
{ text: "Emit", tooltipText: "Click", id: "emit" },
{ text: "New view", tooltipText: "New view", id: "newView" }
]
};
},
methods: {
clickHandler: function (args) {
if (args.item.id === "emit") {
this.$emit("propValue", "prop");
}
}
},
}
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.