Files
alfresco-ng2-components/lib/content-services/search/components/search-check-list/search-check-list.component.html
Denys Vuika ba35eda2f9 search fixes (#3272)
* "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
2018-05-08 13:41:27 +01:00

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>