Files
smartguide/webapp/src/app/shared/ui/topic-chip/topic-chip.component.html
T

30 lines
760 B
HTML

<button
type="button"
class="topic-chip__button"
[disabled]="disabled"
[attr.aria-pressed]="active ? 'true' : null"
[matTooltip]="buttonTooltip"
[matTooltipDisabled]="!buttonTooltip"
matTooltipClass="topic-chip-tooltip"
(click)="handleClick()">
<span
class="topic-chip__label"
[matTooltip]="labelTooltip"
[matTooltipDisabled]="!labelTooltip"
matTooltipClass="topic-chip-tooltip">
{{ label }}
</span>
@if (hasCount) {
<span
class="topic-chip__count"
[matTooltip]="normalizedCountTooltip"
[matTooltipDisabled]="!normalizedCountTooltip">
{{ count }}
@if (countIconName) {
<mat-icon class="topic-chip__count-icon">{{ countIconName }}</mat-icon>
}
</span>
}
</button>