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

29 lines
743 B
HTML

<button
type="button"
class="topic-chip__button"
[class.topic-chip__button--without-count]="!hasCount()"
[disabled]="disabled()"
[attr.aria-pressed]="active() ? 'true' : null"
[appComponentTooltip]="AppTopicTooltipComponent"
[tooltipInputs]="tooltipInputs()"
[tooltipMaxWidth]="'500px'"
(click)="handleClick()">
<span class="topic-chip__label">
{{ 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>