Skip to content

Commit

Permalink
feat(input): add event click in textBefore and textAfter input
Browse files Browse the repository at this point in the history
  • Loading branch information
genssauer committed Jul 24, 2019
1 parent 978c161 commit 10041a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/truly-ui/src/components/input/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<tl-icon>{{ iconBefore }}</tl-icon>
</span>

<span *ngIf="textBefore" class="addon -borderleft"
<span *ngIf="textBefore" (click)="onClickAddon($event, 'before')" class="addon -borderleft"
[ngClass]="
{
'predefined' : textBefore,
Expand Down Expand Up @@ -66,6 +66,6 @@
<tl-icon>{{ iconAfter }}</tl-icon>
</span>

<span *ngIf="textAfter" #afterText class="addon -borderright"
<span *ngIf="textAfter" (click)="onClickAddon($event, 'after')" #afterText class="addon -borderright"
[ngClass]="{ '-predefined' : textAfter, '-flatborders': flatBorder, 'withoutBorder' : !withBorder }">{{textAfter}}</span>
</div>

0 comments on commit 10041a7

Please sign in to comment.