mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
* "show less" button for search filter container * consistent button styles across widgets * i18n support for facets * page sizes for check list * display page buttons only when needed * page sizes for all facet fields * test fixes * update lib versions * fix angular configuration
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<mat-checkbox
|
|
*ngFor="let option of options"
|
|
[checked]="option.checked"
|
|
(change)="changeHandler($event, option)">
|
|
{{ option.name | translate }}
|
|
</mat-checkbox>
|
|
|
|
<div class="facet-buttons" *ngIf="options.fitsPage">
|
|
<button mat-button color="primary" (click)="reset()">
|
|
{{ 'SEARCH.FILTER.ACTIONS.CLEAR-ALL' | translate }}
|
|
</button>
|
|
</div>
|
|
|
|
<div class="facet-buttons" *ngIf="!options.fitsPage">
|
|
<button mat-icon-button
|
|
title="{{ 'SEARCH.FILTER.ACTIONS.CLEAR-ALL' | translate }}"
|
|
(click)="reset()">
|
|
<mat-icon>clear</mat-icon>
|
|
</button>
|
|
<button mat-icon-button
|
|
[disabled]="!options.canShowLessItems"
|
|
title="{{ 'SEARCH.FILTER.ACTIONS.SHOW-LESS' | translate }}"
|
|
(click)="options.showLessItems()">
|
|
<mat-icon>keyboard_arrow_up</mat-icon>
|
|
</button>
|
|
<button mat-icon-button
|
|
[disabled]="!options.canShowMoreItems"
|
|
title="{{ 'SEARCH.FILTER.ACTIONS.SHOW-MORE' | translate }}"
|
|
(click)="options.showMoreItems()">
|
|
<mat-icon>keyboard_arrow_down</mat-icon>
|
|
</button>
|
|
</div>
|