|
|
|
<template>
<div id="app">
<ejs-button isPrimary="true" v-on:click.native="btnClick">Primary</ejs-button>
<ejs-grid ref='Grid' id='Grid' dataSource="data">
</ejs-grid>
</div>
</template>
<script>
import { GridPlugin } from '@syncfusion/ej2-vue-grids';
import { ButtonPlugin } from "@syncfusion/ej2-vue-buttons";
Vue.use(GridPlugin);
Vue.use(ButtonPlugin);
export default {
data () {
return {
}
},
methods: {
btnClick: function(args){
console.log(this.$refs.Grid.getSelectedRecords());
}
}
}
</script> |