Skip to content

Commit 29a615d

Browse files
committed
fix lint
1 parent f17819c commit 29a615d

File tree

2 files changed

+21
-25
lines changed
  • apps/demos/Demos

2 files changed

+21
-25
lines changed

apps/demos/Demos/DataGrid/AIColumn/JQuery/index.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $(() => {
4545
},
4646
});
4747

48-
const createTrademarkTemplate = (vehicle) => {
48+
const createTrademarkTemplate = (vehicle) => {
4949
const {
5050
ID,
5151
Name,
@@ -55,7 +55,7 @@ $(() => {
5555
const imgWrapper = $('<div>').addClass('trademark__img-wrapper');
5656
const img = $('<img>').addClass('trademark__img');
5757
img.attr({
58-
src: `../../../../images/vehicles/image_${ID}.png`,
58+
src: `images/vehicles/image_${ID}.png`,
5959
alt: `${TrademarkName} ${Name}`,
6060
});
6161

@@ -108,7 +108,7 @@ $(() => {
108108
const vehicle = options.data;
109109
const imageWrapper = createTrademarkTemplate(vehicle);
110110
container.append(imageWrapper);
111-
}
111+
},
112112
},
113113
{
114114
dataField: 'Price',
@@ -124,20 +124,20 @@ $(() => {
124124
const category = options.data;
125125
const categoryWrapper = createCategoryTemplate(category);
126126
container.append(categoryWrapper);
127-
}
127+
},
128128
},
129129
{
130130
dataField: 'Modification',
131-
width: 180
131+
width: 180,
132132
},
133133
{
134134
dataField: 'Horsepower',
135-
width: 140
135+
width: 140,
136136
},
137137
{
138138
dataField: 'BodyStyleName',
139139
caption: 'Body Style',
140-
width: 180
140+
width: 180,
141141
},
142142
{
143143
name: 'AI column',
@@ -153,14 +153,11 @@ $(() => {
153153
},
154154
width: 200,
155155
fixed: true,
156-
fixedPosition: "right",
156+
fixedPosition: 'right',
157157
cellTemplate: ($container) => {
158-
$container.addClass("ai__cell");
158+
$container.addClass('ai__cell');
159159
},
160-
// headerCellTemplate: ($container) => {
161-
// $container.addClass("ai__cell");
162-
// }
163-
}
160+
},
164161
],
165162
});
166163
});

apps/demos/Demos/TreeList/AIColumn/JQuery/index.js

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
$(() => {
2-
32
const dataSource = [];
43

54
vehicles.forEach(item => {
@@ -67,7 +66,7 @@ $(() => {
6766
},
6867
});
6968

70-
const createTrademarkTemplate = (vehicle) => {
69+
const createTrademarkTemplate = (vehicle) => {
7170
const {
7271
ID,
7372
Name,
@@ -87,7 +86,7 @@ $(() => {
8786
const imgWrapper = $('<div>').addClass('trademark__img-wrapper');
8887
const img = $('<img>').addClass('trademark__img');
8988
img.attr({
90-
src: `../../../../images/vehicles/image_${ID}.png`,
89+
src: `images/vehicles/image_${ID}.png`,
9190
alt: `${TrademarkName} ${Name}`,
9291
});
9392

@@ -136,7 +135,7 @@ $(() => {
136135

137136
$('#gridContainer').dxTreeList({
138137
dataSource,
139-
keyExpr: "TLID",
138+
keyExpr: 'TLID',
140139
parentIdExpr: 'ParentID',
141140
expandedRowKeys: [1, 3],
142141
columns: [
@@ -147,7 +146,7 @@ $(() => {
147146
const vehicle = options.data;
148147
const imageWrapper = createTrademarkTemplate(vehicle);
149148
container.append(imageWrapper);
150-
}
149+
},
151150
},
152151
{
153152
dataField: 'Price',
@@ -163,20 +162,20 @@ $(() => {
163162
const category = options.data;
164163
const categoryWrapper = createCategoryTemplate(category);
165164
container.append(categoryWrapper);
166-
}
165+
},
167166
},
168167
{
169168
dataField: 'Modification',
170-
width: 180
169+
width: 180,
171170
},
172171
{
173172
dataField: 'Horsepower',
174-
width: 140
173+
width: 140,
175174
},
176175
{
177176
dataField: 'BodyStyleName',
178177
caption: 'Body Style',
179-
width: 180
178+
width: 180,
180179
},
181180
{
182181
name: 'AI column',
@@ -192,11 +191,11 @@ $(() => {
192191
},
193192
width: 200,
194193
fixed: true,
195-
fixedPosition: "right",
194+
fixedPosition: 'right',
196195
cellTemplate: ($container) => {
197-
$container.addClass("ai__cell");
196+
$container.addClass('ai__cell');
198197
},
199-
}
198+
},
200199
],
201200
});
202201
});

0 commit comments

Comments
 (0)