File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
ej2-vue/code-snippet/grid/column Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ new Vue({
19
19
<label> Change freeze direction: </label>
20
20
<ejs-dropdownlist ref='directionDropdown' id='directionDropdown' :dataSource='directionData' index="0" :fields='fields' width="150"></ejs-dropdownlist>
21
21
</div>
22
- <ejs-button ref='button' cssClass='e-outline' v-on:click="freezeDirectionFn">Update</ejs-button>
22
+ <ejs-button ref='button' cssClass='e-outline' v-on:click.native ="freezeDirectionFn">Update</ejs-button>
23
23
<ejs-grid ref='grid' style="padding: 5px 5px" :dataSource="data" height='315px' :enableHover='false'>
24
24
<e-columns>
25
25
<e-column field='OrderID' headerText='Order ID' width='90' textAlign='Right'></e-column>
@@ -57,9 +57,8 @@ new Vue({
57
57
} ,
58
58
methods : {
59
59
freezeDirectionFn : function ( ) {
60
- const grid = this . $refs . grid . $el . ej2_instances [ 0 ]
61
- grid . getColumnByField ( this . $refs . columnDropdown . $el . ej2_instances [ 0 ] . value ) . freeze = this . $refs . directionDropdown . $el . ej2_instances [ 0 ] . value
62
- grid . refreshColumns ( ) ;
60
+ this . $refs . grid . getColumnByField ( this . $refs . columnDropdown . $el . ej2_instances [ 0 ] . value ) . freeze = this . $refs . directionDropdown . $el . ej2_instances [ 0 ] . value
61
+ this . $refs . grid . refreshColumns ( ) ;
63
62
}
64
63
} ,
65
64
provide : {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ new Vue({
23
23
<div>
24
24
<label style="padding: 30px 17px 0 0">Enter the width: </label>
25
25
<ejs-textbox ref='textbox' type="textbox" placeholder="Enter new width" width="120"></ejs-textbox>
26
- <ejs-button ref='button' cssClass='e-outline' v-on:click="onExternalResize">Resize</ejs-button>
26
+ <ejs-button ref='button' cssClass='e-outline' v-on:click.native ="onExternalResize">Resize</ejs-button>
27
27
</div>
28
28
<ejs-grid ref='grid' style="padding: 5px 5px" :dataSource='data' height='315' :allowResizing='true'>
29
29
<e-columns>
You can’t perform that action at this time.
0 commit comments