diff --git a/projects/addon-table/components/table/th/th.component.ts b/projects/addon-table/components/table/th/th.component.ts index 3b6046f03514..ed2abab8a8a8 100644 --- a/projects/addon-table/components/table/th/th.component.ts +++ b/projects/addon-table/components/table/th/th.component.ts @@ -24,7 +24,9 @@ import {TUI_TABLE_OPTIONS, TuiSortDirection} from '../table.options'; styleUrls: ['./th.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, host: { + '[style.min-width.px]': 'width', '[style.width.px]': 'width', + '[style.max-width.px]': 'width', '[class._sticky]': 'sticky', }, }) diff --git a/projects/demo/src/modules/components/table/examples/1/index.html b/projects/demo/src/modules/components/table/examples/1/index.html index b5078d141f55..be3d503a4ff0 100644 --- a/projects/demo/src/modules/components/table/examples/1/index.html +++ b/projects/demo/src/modules/components/table/examples/1/index.html @@ -11,7 +11,13 @@ > Name - Balance + + Balance + + Country + + + + a + + + b + + + c + + + + + + + a + + + b + + + content content + ntcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcon + tentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontent + contentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentconten + tcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentconten + tcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentco + ntentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontent + + + + diff --git a/projects/demo/src/modules/components/table/examples/8/index.ts b/projects/demo/src/modules/components/table/examples/8/index.ts new file mode 100644 index 000000000000..302184873bd0 --- /dev/null +++ b/projects/demo/src/modules/components/table/examples/8/index.ts @@ -0,0 +1,13 @@ +import {Component} from '@angular/core'; +import {changeDetection} from '@demo/emulate/change-detection'; +import {encapsulation} from '@demo/emulate/encapsulation'; +import {TuiTable} from '@taiga-ui/addon-table'; + +@Component({ + standalone: true, + imports: [TuiTable], + templateUrl: './index.html', + encapsulation, + changeDetection, +}) +export default class Example {} diff --git a/projects/demo/src/modules/components/table/index.html b/projects/demo/src/modules/components/table/index.html index 5e45e7fc274f..7c54c905d155 100644 --- a/projects/demo/src/modules/components/table/index.html +++ b/projects/demo/src/modules/components/table/index.html @@ -11,7 +11,7 @@ [component]="index + 1 | tuiComponent" [content]="index + 1 | tuiExample" [description]="index === 4 ? cdkVirtualScrollDescription : null" - [fullsize]="index === 4 || index === 5" + [fullsize]="index === 0 || index === 4 || index === 5" [heading]="example" [id]="example | tuiKebab" > diff --git a/projects/demo/src/modules/components/table/index.ts b/projects/demo/src/modules/components/table/index.ts index dbe2ba8dd43a..4c4de75043a5 100644 --- a/projects/demo/src/modules/components/table/index.ts +++ b/projects/demo/src/modules/components/table/index.ts @@ -19,5 +19,6 @@ export default class Page { 'Virtual scroll', 'Dynamic columns', 'Footer', + 'Resize columns', ]; }