Editable input improvement

This commit is contained in:
Adina Țeudan 2022-12-13 21:31:07 +02:00
parent 8208fdb1ba
commit 88b98f334c
2 changed files with 20 additions and 10 deletions

View File

@ -3,15 +3,17 @@
{{ value }}
</div>
<iqser-circle-button
(action)="editing = true"
[tooltip]="editTooltip"
[type]="buttonsType"
class="edit-button"
icon="iqser:edit"
></iqser-circle-button>
<div class="d-flex">
<iqser-circle-button
(action)="editing = true"
[tooltip]="editTooltip"
[type]="buttonsType"
class="edit-button"
icon="iqser:edit"
></iqser-circle-button>
<ng-content select="[slot=editing]"></ng-content>
<ng-content select="[slot=editing]"></ng-content>
</div>
</ng-container>
<ng-container *ngIf="editing">
@ -21,6 +23,13 @@
</div>
</form>
<iqser-circle-button (action)="saveValue()" [tooltip]="saveTooltip" [type]="buttonsType" icon="iqser:check"></iqser-circle-button>
<iqser-circle-button (action)="editing = false" [tooltip]="cancelTooltip" [type]="buttonsType" icon="iqser:close"></iqser-circle-button>
<div class="d-flex">
<iqser-circle-button (action)="saveValue()" [tooltip]="saveTooltip" [type]="buttonsType" icon="iqser:check"></iqser-circle-button>
<iqser-circle-button
(action)="editing = false"
[tooltip]="cancelTooltip"
[type]="buttonsType"
icon="iqser:close"
></iqser-circle-button>
</div>
</ng-container>

View File

@ -1,6 +1,7 @@
:host {
display: flex;
align-items: center;
justify-content: space-between;
}
iqser-circle-button {