Files
cbsnexora/src/app/shared/long-text/long-text.component.html
T

22 lines
732 B
HTML

<!--
Copyright since 2025 Mifos Initiative
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
-->
@if (!emptyValue) {
<span (mouseenter)="mouseEnter()" (mouseleave)="mouseLeave()">
@if (isLongValue()) {
<span class="m-l-3" (click)="showValue()"><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon></span>
}
@if (isLongValue()) {
<span class="m-l-5" (click)="showValue()">{{ textValue | truncateText: printChars }}...</span>
}
@if (!isLongValue()) {
<span class="m-l-5" (click)="showValue()">{{ textValue }}</span>
}
</span>
}