Skip to content

Commit 129594b

Browse files
List Web API Service Demo - Remove CategoryName from the item template (#31861)
1 parent 59b44e4 commit 129594b

File tree

5 files changed

+0
-5
lines changed

5 files changed

+0
-5
lines changed

apps/demos/Demos/List/WebAPI/Angular/app/app.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
itemTemplate="data"
1111
>
1212
<div *dxTemplate="let item of 'data'">
13-
<div>{{ item.CategoryName }}</div>
1413
<div>{{ item.ProductName }}</div>
1514
<b>{{ item.UnitPrice | currency : "USD" : "symbol" : "1.2" }}</b>
1615
</div>

apps/demos/Demos/List/WebAPI/React/ProductInfo.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const currencyFormatter = new Intl.NumberFormat('en-US', {
1010
export default function ProductInfo(item) {
1111
return (
1212
<React.Fragment>
13-
<div>{item.CategoryName}</div>
1413
<div>{item.ProductName}</div>
1514
<b className="price">{currencyFormatter.format(item.UnitPrice)}</b>
1615
</React.Fragment>

apps/demos/Demos/List/WebAPI/ReactJs/ProductInfo.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const currencyFormatter = new Intl.NumberFormat('en-US', {
99
export default function ProductInfo(item) {
1010
return (
1111
<React.Fragment>
12-
<div>{item.CategoryName}</div>
1312
<div>{item.ProductName}</div>
1413
<b className="price">{currencyFormatter.format(item.UnitPrice)}</b>
1514
</React.Fragment>

apps/demos/Demos/List/WebAPI/Vue/ProductInfo.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template>
22
<div>
3-
<div>{{ item.CategoryName }}</div>
43
<div>{{ item.ProductName }}</div>
54
<b class="price">{{ currency(item.UnitPrice) }}</b>
65
</div>

apps/demos/Demos/List/WebAPI/jQuery/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ $(() => {
2525
itemTemplate(data) {
2626
const price = formatCurrency(data.UnitPrice);
2727
return $('<div>')
28-
.append($('<div>').text(data.CategoryName))
2928
.append($('<div>').text(data.ProductName))
3029
.append($('<b>').text(price));
3130
},

0 commit comments

Comments
 (0)