You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: includes/custom-templates.md
+58-4Lines changed: 58 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,8 +207,6 @@ Collection UI components are components that include the **items** property. The
207
207
208
208
##### Angular
209
209
210
-
Declare **named** templates within the component's markup but outside the templated element. **Non-named** templates should be declared inside the templated element.
211
-
212
210
<!-- tab: app.component.html -->
213
211
<dx-list>
214
212
<dxi-item>
@@ -246,10 +244,34 @@ Declare **named** templates within the component's markup but outside the templa
246
244
})
247
245
export class AppModule { }
248
246
249
-
##### Vue
250
-
251
247
Declare **named** templates within the component's markup but outside the templated element. **Non-named** templates should be declared inside the templated element.
252
248
249
+
<!-- tab: app.component.html -->
250
+
<!-- Named template (the name is 'pictureCellTemplate'): -->
251
+
<dx-data-grid ... >
252
+
<dxi-column
253
+
dataField="Picture"
254
+
[width]="100"
255
+
[allowFiltering]="false"
256
+
[allowSorting]="false"
257
+
cellTemplate="pictureCellTemplate"
258
+
></dxi-column>
259
+
<div *dxTemplate="let data of 'pictureCellTemplate'">
@@ -291,6 +313,38 @@ Declare **named** templates within the component's markup but outside the templa
291
313
}
292
314
</script>
293
315
316
+
Declare **named** templates within the component's markup but outside the templated element. **Non-named** templates should be declared inside the templated element.
317
+
318
+
<!-- tab: App.vue -->
319
+
<!-- Named template (the name is 'pictureCellTemplate'): -->
0 commit comments