Skip to content

Commit dfa7b2d

Browse files
author
Konstantin Dinev
committed
feat(image column): updating column datatypes
1 parent f0c7dd0 commit dfa7b2d

11 files changed

Lines changed: 11 additions & 0 deletions

src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
<igx-column field="ProductName" [width]="'120px'" header="Prod. Name" [sortable]="true" [hasSummary]="true"
8383
[editable]="true" [dataType]="'string'" [resizable]="true">
8484
</igx-column>
85+
<igx-column field="ProductImage" [width]="'60px'" header="Image" [dataType]="'image'" [resizable]="true">
86+
</igx-column>
8587
<igx-column field="UnitPrice" [width]="'100px'" header="Unit Price" [sortable]="true" [hasSummary]="true" [editable]="true"
8688
[pipeArgs]="formatOptions" [dataType]="'number'" [resizable]="true">
8789
</igx-column>

src/app/grid/grid-column-data-types-sample/grid-column-data-types-sample.component.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
8585
SupplierID: 1,
8686
CategoryID: 1,
8787
QuantityPerUnit: "10 boxes x 20 bags",
88+
ProductImage: "/assets/images/products/chai.jpg",
8889
UnitPrice: 18.0000,
8990
UnitsInStock: 39,
9091
UnitsOnOrder: 0.030,
@@ -96,6 +97,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
9697
}, {
9798
ProductID: 2,
9899
ProductName: "Chang",
100+
ProductImage: "/assets/images/products/chang.jpg",
99101
SupplierID: 1,
100102
CategoryID: 1,
101103
QuantityPerUnit: "24 - 12 oz bottles",
@@ -110,6 +112,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
110112
}, {
111113
ProductID: 3,
112114
ProductName: "Aniseed Syrup",
115+
ProductImage: "/assets/images/products/aniseed.jpg",
113116
SupplierID: 1,
114117
CategoryID: 2,
115118
QuantityPerUnit: "12 - 550 ml bottles",
@@ -124,6 +127,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
124127
}, {
125128
ProductID: 4,
126129
ProductName: "Chef Antons Cajun Seasoning",
130+
ProductImage: "/assets/images/products/cajun-seasoning.jpg",
127131
SupplierID: 2,
128132
CategoryID: 2,
129133
QuantityPerUnit: "48 - 6 oz jars",
@@ -138,6 +142,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
138142
}, {
139143
ProductID: 5,
140144
ProductName: "Chef Antons Gumbo Mix",
145+
ProductImage: "/assets/images/products/chef-antons-gumbo-mix.jpg",
141146
SupplierID: 2,
142147
CategoryID: 2,
143148
QuantityPerUnit: "36 boxes",
@@ -152,6 +157,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
152157
}, {
153158
ProductID: 6,
154159
ProductName: "Grandmas Boysenberry Spread",
160+
ProductImage: "/assets/images/products/grandmas-boysenberry-spread.jpg",
155161
SupplierID: 3,
156162
CategoryID: 2,
157163
QuantityPerUnit: "12 - 8 oz jars",
@@ -166,6 +172,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
166172
}, {
167173
ProductID: 7,
168174
ProductName: "Uncle Bobs Organic Dried Pears",
175+
ProductImage: "/assets/images/products/uncle-bobs-organic-dried-pears.jpg",
169176
SupplierID: 3,
170177
CategoryID: 7,
171178
QuantityPerUnit: "12 - 1 lb pkgs.",
@@ -180,6 +187,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
180187
}, {
181188
ProductID: 8,
182189
ProductName: "Northwoods Cranberry Sauce",
190+
ProductImage: "/assets/images/products/cranberry-sauce.jpg",
183191
SupplierID: 3,
184192
CategoryID: 2,
185193
QuantityPerUnit: "12 - 12 oz jars",
@@ -194,6 +202,7 @@ export class GridColumnDataTypesSampleComponent implements OnInit {
194202
}, {
195203
ProductID: 9,
196204
ProductName: "Mishi Kobe Niku",
205+
ProductImage: "/assets/images/products/mishi-kobe-niku.jpg",
197206
SupplierID: 4,
198207
CategoryID: 6,
199208
QuantityPerUnit: "18 - 500 g pkgs.",
754 Bytes
Loading
732 Bytes
Loading
724 Bytes
Loading
637 Bytes
Loading
774 Bytes
Loading
736 Bytes
Loading
730 Bytes
Loading
615 Bytes
Loading

0 commit comments

Comments
 (0)