-
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.
fix(demo): migrate tui-table classes from filter pipe
- Loading branch information
Showing
3 changed files
with
42 additions
and
9 deletions.
There are no files selected for viewing
21 changes: 13 additions & 8 deletions
21
projects/demo/src/modules/pipes/filter/examples/1/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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
<table class="tui-table table"> | ||
<thead> | ||
<tr> | ||
<th class="tui-table__th cell_name">Name</th> | ||
<th class="tui-table__th cell_sum">Sum, $</th> | ||
<table | ||
tuiTable | ||
[style.width.rem]="17" | ||
> | ||
<thead tuiThead> | ||
<tr tuiThGroup> | ||
<th tuiTh>Name</th> | ||
<th tuiTh>Sum, $</th> | ||
</tr> | ||
</thead> | ||
<tbody tuiTbody> | ||
<tr *ngFor="let item of items | tuiFilter: matcher : 300"> | ||
<td class="tui-table__td cell_name">{{ item.name }}</td> | ||
<td class="tui-table__td cell_sum">{{ item.price }}</td> | ||
<td tuiTd>{{ item.name }}</td> | ||
<td tuiTd>{{ item.price }}</td> | ||
</tr> | ||
</thead> | ||
</tbody> | ||
</table> |
10 changes: 10 additions & 0 deletions
10
projects/demo/src/modules/pipes/filter/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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@import '@taiga-ui/core/styles/taiga-ui-local'; | ||
|
||
[tuiTh], | ||
[tuiTd] { | ||
border: none; | ||
} | ||
|
||
[tuiTd] { | ||
font: var(--tui-font-text-m) !important; | ||
} |
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