Skip to content

Commit 2ea2d1c

Browse files
Merge pull request #389 from Syncfusion-Content/hotfix/hotfix-v26.1.35
DOCINFRA-2341_merged_using_automation
2 parents 5c196db + e75bc81 commit 2ea2d1c

File tree

32 files changed

+104
-69
lines changed

32 files changed

+104
-69
lines changed

ej2-vue/code-snippet/grid/accessibility/custom-shortcut-key/app-composition.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
</template>
1313

1414
<script setup>
15-
import { provide } from "vue";
16-
15+
import { provide, ref } from "vue";
1716
import { GridComponent as EjsGrid, ColumnDirective as EColumn, ColumnsDirective as EColumns, Toolbar, Edit, Group } from "@syncfusion/ej2-vue-grids";
1817
import { data } from './datasource.js';
18+
const grid = ref(null)
1919
const toolbar = ['Add', 'Edit', 'Delete', 'Update', 'Cancel'];
2020
const selectionSettings = { type: 'Multiple' };
2121
const editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
@@ -25,36 +25,36 @@ const keyPressed = function (e) {
2525
switch (key) {
2626
case 'n':
2727
e.preventDefault();
28-
this.$refs.grid.addRecord();
28+
grid.value.addRecord();
2929
break;
3030
case 's':
3131
if (e.ctrlKey) {
3232
e.preventDefault();
33-
this.$refs.grid.endEdit();
33+
grid.value.endEdit();
3434
}
3535
break;
3636
case 'd':
3737
if (e.ctrlKey) {
3838
e.preventDefault();
39-
this.$refs.grid.deleteRecord();
39+
grid.value.deleteRecord();
4040
}
4141
break;
4242
case 'a':
4343
if (e.ctrlKey) {
4444
e.preventDefault();
45-
this.$refs.grid.selectRowsByRange(0);
45+
grid.value.selectRowsByRange(0);
4646
}
4747
break;
4848
case 'g':
4949
if (e.ctrlKey) {
5050
e.preventDefault();
51-
this.$refs.grid.groupColumn('CustomerID');
51+
grid.value.groupColumn('CustomerID');
5252
}
5353
break;
5454
case 'enter':
5555
e.preventDefault();
5656
e.cancel = true;
57-
this.$refs.grid.refreshColumns();
57+
grid.value.refreshColumns();
5858
break;
5959
case 'insert':
6060
e.preventDefault();

ej2-vue/code-snippet/grid/aggregates/default-cs11/app-composition.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const app = createApp();
3131
}
3232
}
3333
const customAggregateFn = function () {
34-
const distinct = DataUtil.distinct(this.data, 'ShipCountry', true);
34+
const distinct = DataUtil.distinct(data, 'ShipCountry', true);
3535
return distinct.length;
3636
}
3737
provide('grid', [Aggregate]);

ej2-vue/code-snippet/grid/aggregates/default-cs5/app.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
2323
import { GridComponent, ColumnsDirective, ColumnDirective, AggregatesDirective, AggregateDirective, Group, Aggregate } from "@syncfusion/ej2-vue-grids";
2424
import { data } from './datasource.js';
25+
import { createApp } from "vue";
2526
const app = createApp();
2627
2728
export default {

ej2-vue/code-snippet/grid/cell/autowrap-cs2/app-composition.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const ddlData = [
3232
{ text: 'None', value: 'None' },
3333
];
3434
const change = function (args) {
35-
grid.value.gridLines = args.value
35+
grid.value.ej2Instances.gridLines = args.value
3636
}
3737
</script>
3838
<style>

ej2-vue/code-snippet/grid/cell/autowrap-cs2/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ components: {
4444
},
4545
methods: {
4646
change: function(args) {
47-
this.$refs.grid.gridLines= args.value
47+
this.$refs.grid.ej2Instances.gridLines= args.value
4848
}
4949
},
5050
}

ej2-vue/code-snippet/grid/cell/custom-tooltip/app-composition.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { ref } from 'vue';
2121
const tooltip = ref(null);
2222
const beforeRender = function (args) {
2323
if (args.target.classList.contains('e-rowcell')) {
24-
tooltip.value.content = 'The value is "' + args.target.innerText + '" ';
24+
tooltip.value.ej2Instances.content = 'The value is "' + args.target.innerText + '" ';
2525
}
2626
}
2727
</script>

ej2-vue/code-snippet/grid/cell/custom-tooltip/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default {
3333
methods: {
3434
beforeRender: function (args) {
3535
if (args.target.classList.contains('e-rowcell')) {
36-
this.$refs.tooltip.content = 'The value is "' + args.target.innerText + '" ';
36+
this.$refs.tooltip.ej2Instances.content = 'The value is "' + args.target.innerText + '" ';
3737
}
3838
}
3939
}

ej2-vue/code-snippet/grid/column/column-align-cs1/app-composition.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const alignmentData = [
3030
{ text: 'Justify', value: 'Justify' },
3131
];
3232
const change = function (args) {
33-
grid.value.columns.forEach(col => {
33+
grid.value.ej2Instances.columns.forEach(col => {
3434
col.textAlign = args.value;
3535
});
3636
grid.value.refreshColumns();

ej2-vue/code-snippet/grid/column/complex-cs3/app-composition.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="app">
3-
<ejs-grid :dataSource="data" :query="query" :allowPaging="true">
3+
<ejs-grid :dataSource="data" :query="query">
44
<e-columns>
55
<e-column field="OrderID" headerText="Order ID" textAlign="Right" width="100"></e-column>
66
<e-column field="CustomerID" headerText="Customer ID" width="120"></e-column>

ej2-vue/code-snippet/grid/column/complex-cs3/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="app">
3-
<ejs-grid :dataSource="data" :query='query' allowPaging=true>
3+
<ejs-grid :dataSource="data" :query='query'>
44
<e-columns>
55
<e-column field='OrderID' headerText='Order ID' textAlign='Right' width=100></e-column>
66
<e-column field='CustomerID' headerText='Customer ID' width=120></e-column>

0 commit comments

Comments
 (0)