-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add filter-funnel icon * close menu on escape key * table sortable input * cps menu optional event * fix colSortable directive * general filter component * matchmodes * fix datepicker valueChanged emitter * tableColumnFilterConstraint component * style column filter * clean code * fix filter icon paddings * cpsColFilter directive * fix sortMode * filter apply button logic fix * show sort icon on hover * remove unnecessary tests
- Loading branch information
Showing
20 changed files
with
869 additions
and
133 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
22 changes: 15 additions & 7 deletions
22
projects/composition/src/app/pages/table-page/table-page.component.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,31 +1,39 @@ | ||
<cps-table | ||
[showGlobalFilter]="true" | ||
[data]="data" | ||
[columns]="cols" | ||
dataKey="a" | ||
[showActionBtn]="true" | ||
[reorderableRows]="true" | ||
[selectable]="true" | ||
[paginator]="true" | ||
sortMode="multiple" | ||
[showRowMenu]="true" | ||
(editRowBtnClicked)="onEditRowButtonClicked($event)" | ||
(actionBtnClicked)="onActionBtnClicked()" | ||
toolbarTitle="This is an alpha version of table component"> | ||
<ng-template #header> | ||
<th cpsColSortable="a">A</th> | ||
<th>B</th> | ||
<th cpsColSortable="c">C</th> | ||
<th cpsColSortable="a" cpsColFilter="a" filterType="text">A</th> | ||
<th cpsColSortable="b" cpsColFilter="b" filterType="date">B</th> | ||
<th cpsColSortable="c" cpsColFilter="c" filterType="number">C</th> | ||
<th cpsColSortable="d" cpsColFilter="d" filterType="boolean">D</th> | ||
<th cpsColSortable="e" cpsColFilter="e" filterType="category">E</th> | ||
</ng-template> | ||
|
||
<ng-template let-item #body> | ||
<td>{{ item.a }}</td> | ||
<td>{{ item.b | uppercase }}</td> | ||
<td>{{ item.a | uppercase }}</td> | ||
<td>{{ item.b | date : 'MM/dd/yyyy' }}</td> | ||
<td>{{ item.c | percent }}</td> | ||
<td [style.color]="item.d ? 'green' : 'red'"> | ||
{{ item.d ? '✔' : '✘' }} | ||
</td> | ||
<td>{{ item.e }}</td> | ||
</ng-template> | ||
|
||
<ng-template let-item #rowexpansion> | ||
<div class="expanded-row-contents"> | ||
<div>id: {{ item.d.id }}</div> | ||
<div>desc: {{ item.d.desc }}</div> | ||
<div>id: {{ item.f.id }}</div> | ||
<div>desc: {{ item.f.desc }}</div> | ||
</div> | ||
</ng-template> | ||
</cps-table> |
Oops, something went wrong.