-
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
8 changed files
with
88 additions
and
2 deletions.
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
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
2 changes: 2 additions & 0 deletions
2
projects/demo/src/modules/components/table/examples/1/index.less
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.table { | ||
inline-size: 100%; | ||
max-inline-size: 100%; | ||
table-layout: fixed; | ||
} |
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
60 changes: 60 additions & 0 deletions
60
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,60 @@ | ||
<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 | ||
> | ||
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
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', | ||
'Resize columns', | ||
]; | ||
} |