-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(addon-table): allow resize more than 100% width of table
- Loading branch information
Showing
4 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
projects/demo/src/modules/components/table/examples/8/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<table | ||
tuiTable | ||
[columns]="['a', 'b', 'c']" | ||
> | ||
<thead> | ||
<tr tuiThGroup> | ||
<th | ||
*tuiHead="'a'" | ||
tuiTh | ||
[resizable]="true" | ||
> | ||
a | ||
</th> | ||
<th | ||
*tuiHead="'b'" | ||
tuiTh | ||
[resizable]="true" | ||
> | ||
b | ||
</th> | ||
<th | ||
*tuiHead="'c'" | ||
tuiTh | ||
[resizable]="true" | ||
> | ||
c | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody | ||
tuiTbody | ||
[data]="[{a: 1, b: 2, c: 3}]" | ||
> | ||
<tr tuiTr> | ||
<td | ||
*tuiCell="'a'" | ||
tuiTd | ||
> | ||
a | ||
</td> | ||
<td | ||
*tuiCell="'b'" | ||
tuiTd | ||
> | ||
b | ||
</td> | ||
<td | ||
*tuiCell="'c'" | ||
tuiTd | ||
> | ||
content content | ||
ntcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcon | ||
tentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontent | ||
contentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentconten | ||
tcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentconten | ||
tcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentco | ||
ntentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontentcontent | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> |
13 changes: 13 additions & 0 deletions
13
projects/demo/src/modules/components/table/examples/8/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,6 @@ export default class Page { | |
'Virtual scroll', | ||
'Dynamic columns', | ||
'Footer', | ||
'Allow resize more than 100%', | ||
]; | ||
} |