diff --git a/apps/showcase/doc/table/sizedoc.ts b/apps/showcase/doc/table/sizedoc.ts
index 281b3f7e639..077d4dfc6e8 100644
--- a/apps/showcase/doc/table/sizedoc.ts
+++ b/apps/showcase/doc/table/sizedoc.ts
@@ -63,14 +63,30 @@ export class SizeDoc {
code: Code = {
basic: `
-
+
+
+
+ Code |
+ Name |
+ Category |
+ Quantity |
+
+
+
+
+ {{ product.code }} |
+ {{ product.name }} |
+ {{ product.category }} |
+ {{ product.quantity }} |
+
+
+`,
+ html: `
+
Code |
@@ -88,34 +104,6 @@ export class SizeDoc {
`,
- html: `
-
-
-
-
- Code |
- Name |
- Category |
- Quantity |
-
-
-
-
- {{ product.code }} |
- {{ product.name }} |
- {{ product.category }} |
- {{ product.quantity }} |
-
-
-
-
`,
typescript: `import { Component } from '@angular/core';
import { Product } from '@/domain/product';
import { ProductService } from '@/service/productservice';
@@ -135,7 +123,7 @@ export class TableSizeDemo {
sizes!: any[];
- selectedSize: any = '';
+ selectedSize: any = undefined;
constructor(private productService: ProductService) {}
@@ -145,9 +133,9 @@ export class TableSizeDemo {
});
this.sizes = [
- { name: 'Small', class: 'p-datatable-sm' },
- { name: 'Normal', class: '' },
- { name: 'Large', class: 'p-datatable-lg' }
+ { name: 'Small', value: 'small' },
+ { name: 'Normal', value: undefined },
+ { name: 'Large', value: 'large' }
];
}
}`,