File tree Expand file tree Collapse file tree 18 files changed +26
-26
lines changed
ej2-vue/code-snippet/grid
column-header-headertext-all
select/selection-row-records Expand file tree Collapse file tree 18 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ new Vue({
9
9
el : '#app' ,
10
10
template : `
11
11
<div id="app">
12
- <ejs-button cssClass="e-success" v-on:click='changeHeaderText'>Change Header Text</ejs-button>
12
+ <ejs-button cssClass="e-success" v-on:click.native ='changeHeaderText'>Change Header Text</ejs-button>
13
13
<div style="padding: 20px 17px 0 0">
14
14
<ejs-grid ref="grid" :dataSource='data' height='280'>
15
15
<e-columns>
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ new Vue({
10
10
template : `
11
11
<div id="app">
12
12
<div style="display: flex">
13
- <ejs-button id="small" v-on:click="changeHeaderHeight">Change height 20px</ejs-button>
14
- <ejs-button id="medium" v-on:click="changeHeaderHeight">Default height 42px</ejs-button>
15
- <ejs-button id="big" v-on:click="changeHeaderHeight">Change height 60px</ejs-button>
13
+ <ejs-button id="small" v-on:click.native ="changeHeaderHeight">Change height 20px</ejs-button>
14
+ <ejs-button id="medium" v-on:click.native ="changeHeaderHeight">Default height 42px</ejs-button>
15
+ <ejs-button id="big" v-on:click.native ="changeHeaderHeight">Change height 60px</ejs-button>
16
16
</div>
17
17
<div style="padding-top: 20px">
18
18
<ejs-grid ref="grid" :dataSource="data">
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ new Vue({
9
9
el : '#app' ,
10
10
template : `
11
11
<div id="app">
12
- <ejs-button v-on:click="refreshHeader">Refresh Header</ejs-button>
12
+ <ejs-button v-on:click.native ="refreshHeader">Refresh Header</ejs-button>
13
13
<div style='padding:20px 0px 0px 0px'>
14
14
<ejs-grid ref="grid" :dataSource="data">
15
15
<e-columns>
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ new Vue({
27
27
<label style="padding: 30px 17px 0 0">Enter new header text :</label>
28
28
<ejs-textbox ref="textbox" required placeholder="Enter new header text" width="220">
29
29
</ejs-textbox>
30
- <ejs-button style="margin-left: 10px" id="buttons" v-on:click="changeHeaderText" >
30
+ <ejs-button style="margin-left: 10px" id="buttons" v-on:click.native ="changeHeaderText" >
31
31
Change
32
32
</ejs-button>
33
33
</div>
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ new Vue({
11
11
el : '#app' ,
12
12
template : `
13
13
<div id="app">
14
- <ejs-button ref='button' cssClass='e-outline' v-on:click="reorderByIndex">Reorder column by index</ejs-button>
14
+ <ejs-button ref='button' cssClass='e-outline' v-on:click.native ="reorderByIndex">Reorder column by index</ejs-button>
15
15
<ejs-grid ref='grid' :dataSource="data" :allowReordering='true' height='315px'>
16
16
<e-columns>
17
17
<e-column field='OrderID' headerText='Order ID' textAlign='Right' width=90></e-column>
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ new Vue({
12
12
el : '#app' ,
13
13
template : `
14
14
<div id="app">
15
- <ejs-button id='show' cssClass="e-info" v-on:click='show'> Show </ejs-button>
16
- <ejs-button id='hide' cssClass="e-info" v-on:click='hide'> Hide </ejs-button>
15
+ <ejs-button id='show' cssClass="e-info" v-on:click.native ='show'> Show </ejs-button>
16
+ <ejs-button id='hide' cssClass="e-info" v-on:click.native ='hide'> Hide </ejs-button>
17
17
<ejs-grid ref='grid' id='grid' :dataSource="data" height='315px'>
18
18
<e-columns>
19
19
<e-column field='OrderID' headerText='Order ID' textAlign='Right' width=90></e-column>
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ new Vue({
12
12
el : '#app' ,
13
13
template : `
14
14
<div id="app">
15
- <ejs-button id='show' cssClass="e-info" v-on:click='show'> Show </ejs-button>
16
- <ejs-button id='hide' cssClass="e-info" v-on:click='hide'> Hide </ejs-button>
15
+ <ejs-button id='show' cssClass="e-info" v-on:click.native ='show'> Show </ejs-button>
16
+ <ejs-button id='hide' cssClass="e-info" v-on:click.native ='hide'> Hide </ejs-button>
17
17
<ejs-grid ref='grid' id='grid' :dataSource="data" height='315px'>
18
18
<e-columns>
19
19
<e-column field='OrderID' headerText='Order ID' textAlign='Right' width=90></e-column>
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ new Vue({
16
16
<div style="display: inline-block;">
17
17
<label> Change the frozen columns: </label>
18
18
<ejs-numerictextbox ref='textbox' id='textbox' :min="0" :max="3" :validateDecimalOnType="true" floatLabelType="Auto" format="n" width='100px' :value=2></ejs-numerictextbox>
19
- <ejs-button ref='button' cssClass='e-outline' v-on:click="frozenColumnFn">Update</ejs-button>
19
+ <ejs-button ref='button' cssClass='e-outline' v-on:click.native ="frozenColumnFn">Update</ejs-button>
20
20
</div>
21
21
<ejs-grid ref='grid' style="padding: 5px 5px" :dataSource="data" height='315px' :frozenColumns='2' :enableHover='false'>
22
22
<e-columns>
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" app" >
3
3
<div >
4
- <label style =" padding : 30px 17px 0 0 ;font-weight : bold " >Enter page count :</label >
4
+ <label style =" padding : 30px 17px 0 0 ;font-weight : bold " >Enter page size :</label >
5
5
<ejs-textbox ref =" textbox" width =" 120" ></ejs-textbox >
6
6
<ejs-button id =" button" v-on:click =" clickHandler" >click button</ejs-button >
7
7
</div >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div id =" app" >
3
3
<div >
4
- <label style =" padding : 30px 17px 0 0 ;font-weight : bold " >Enter page count :</label >
4
+ <label style =" padding : 30px 17px 0 0 ;font-weight : bold " >Enter page size :</label >
5
5
<ejs-textbox ref =" textbox" width =" 120" ></ejs-textbox >
6
6
<ejs-button id =" button" v-on:click =" clickHandler" >click button</ejs-button >
7
7
</div >
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ new Vue({
14
14
template : `
15
15
<div id="app">
16
16
<div>
17
- <label style="padding: 30px 17px 0 0;font-weight: bold">Enter page count :</label>
17
+ <label style="padding: 30px 17px 0 0;font-weight: bold">Enter page size :</label>
18
18
<ejs-textbox ref="textbox" width="120"></ejs-textbox>
19
- <ejs-button id="button" v-on:click="clickHandler">click button</ejs-button>
19
+ <ejs-button id="button" v-on:click.native ="clickHandler">click button</ejs-button>
20
20
</div>
21
21
<div style="padding:20px 0 0 0">
22
22
<ejs-grid ref="grid" id="PagingGrid" :dataSource="data" :allowPaging="true" height="325">
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ new Vue({
15
15
<div>
16
16
<label style="padding: 30px 17px 0 0;font-weight: bold">Enter page index:</label>
17
17
<ejs-textbox ref="textbox" width="120"></ejs-textbox>
18
- <ejs-button id="button" v-on:click="clickHandler">click button</ejs-button>
18
+ <ejs-button id="button" v-on:click.native ="clickHandler">click button</ejs-button>
19
19
</div>
20
20
<div style="padding:20px 0 0 0">
21
21
<ejs-grid ref="grid" id="PagingGrid" :dataSource="data" :allowPaging="true" height="325">
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ new Vue({
16
16
<div>
17
17
<label style="padding: 30px 17px 0 0;font-weight: bold">Enter current page:</label>
18
18
<ejs-textbox ref="textbox" width="120"></ejs-textbox>
19
- <ejs-button ref="button" id="button" v-on:click="clickHandler">click button</ejs-button>
19
+ <ejs-button ref="button" id="button" v-on:click.native ="clickHandler">click button</ejs-button>
20
20
</div>
21
21
<div style="padding:20px 0 0 0">
22
22
<ejs-grid ref="grid" id="PagingGrid" :dataSource="data" :allowPaging="true" height="325">
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ new Vue({
16
16
<div>
17
17
<label style="padding: 30px 17px 0 0;font-weight: bold">Enter page count:</label>
18
18
<ejs-textbox ref="textbox" width="120"></ejs-textbox>
19
- <ejs-button id="button" v-on:click="clickHandler">click button</ejs-button>
19
+ <ejs-button id="button" v-on:click.native ="clickHandler">click button</ejs-button>
20
20
</div>
21
21
<div style="padding:20px 0 0 0">
22
22
<ejs-grid ref="grid" id="PagingGrid" :dataSource="data" :allowPaging="true" height="325">
Original file line number Diff line number Diff line change 1
1
import Vue from "vue" ;
2
- import { GridPlugin } from "@syncfusion/ej2-vue-grids" ;
2
+ import { GridPlugin , Page } from "@syncfusion/ej2-vue-grids" ;
3
3
import { ButtonPlugin } from '@syncfusion/ej2-vue-buttons' ;
4
4
import { data } from './datasource.js' ;
5
5
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ new Vue({
24
24
<ejs-dropdownlist ref='directionDropDown' id='directionDropDown' index="0" width="150" :dataSource="directionData"
25
25
:fields='fields'></ejs-dropdownlist>
26
26
</div>
27
- <ejs-button style="margin: 5px" ref='button' cssClass='e-outline' v-on:click="addSortColumn">Add sort
27
+ <ejs-button style="margin: 5px" ref='button' cssClass='e-outline' v-on:click.native ="addSortColumn">Add sort
28
28
column</ejs-button>
29
29
<ejs-grid ref='grid' style="margin-top: 10px" :dataSource='data' :allowSorting='true' :sortSettings='initialSort'
30
30
height='315px'>
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ new Vue({
39
39
template : `<ejs-toolbar>
40
40
<div>
41
41
<img :src="addImageSource" id="addImage" />
42
- <ejs-button ref='button' id="addButton" class="button" cssClass='e-outline' v-on:click="editAction">Add</ejs-button>
42
+ <ejs-button ref='button' id="addButton" class="button" cssClass='e-outline' v-on:click.native ="editAction">Add</ejs-button>
43
43
<img :src="deleteImageSource" id="deleteImage" />
44
- <ejs-button ref='button' id="deleteButton" class="button" cssClass='e-outline' v-on:click="editAction">Delete</ejs-button>
44
+ <ejs-button ref='button' id="deleteButton" class="button" cssClass='e-outline' v-on:click.native ="editAction">Delete</ejs-button>
45
45
</div>
46
46
</ejs-toolbar>` ,
47
47
data : function ( ) {
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ new Vue({
32
32
template : Vue . component ( 'custom-toolbar' , {
33
33
template : `<ejs-toolbar>
34
34
<div id="toolbar">
35
- <ejs-button id="excelButton" cssClass='e-outline' v-on:click="exportAction">Excel Export</ejs-button>
36
- <ejs-button id="pdfButton" cssClass='e-outline' v-on:click="exportAction">Pdf Export</ejs-button>
37
- <ejs-button id="printButton" cssClass='e-outline' v-on:click="exportAction">Print</ejs-button>
35
+ <ejs-button id="excelButton" cssClass='e-outline' v-on:click.native ="exportAction">Excel Export</ejs-button>
36
+ <ejs-button id="pdfButton" cssClass='e-outline' v-on:click.native ="exportAction">Pdf Export</ejs-button>
37
+ <ejs-button id="printButton" cssClass='e-outline' v-on:click.native ="exportAction">Print</ejs-button>
38
38
</div>
39
39
</ejs-toolbar>` ,
40
40
data : function ( ) {
You can’t perform that action at this time.
0 commit comments