Files
alfresco-ng2-components/lib/content-services/search/components/search-radio/search-radio.component.html
jdosti 6e8677a768 [ADF-3713] Implement Search radio component tests (#3948)
* [ADF-3713] Implement Search radio component tests

* Fixing the double quotes and whitespaces

* Changing names of methods

* More renamings

* Removing trailing whitespace

* Refactoring of search filters tests

* Small changes
2018-11-20 00:41:07 +00:00

31 lines
1.0 KiB
HTML

<mat-radio-group
[(ngModel)]="value"
(change)="changeHandler($event)">
<mat-radio-button [attr.data-automation-id]="'search-radio-'+(option.name | translate)"
*ngFor="let option of options"
[value]="option.value"
class="facet-filter">
<div
matTooltip="{{ option.name | translate }}"
matTooltipPosition="right"
class="filter-label">
{{ option.name | translate }}
</div>
</mat-radio-button>
</mat-radio-group>
<div class="facet-buttons" *ngIf="!options.fitsPage">
<button mat-icon-button
*ngIf="options.canShowLessItems"
title="{{ 'SEARCH.FILTER.ACTIONS.SHOW-LESS' | translate }}"
(click)="options.showLessItems()">
<mat-icon>keyboard_arrow_up</mat-icon>
</button>
<button mat-icon-button
*ngIf="options.canShowMoreItems"
title="{{ 'SEARCH.FILTER.ACTIONS.SHOW-MORE' | translate }}"
(click)="options.showMoreItems()">
<mat-icon>keyboard_arrow_down</mat-icon>
</button>
</div>