core/forms/input-group-list.component.ts
selector | c8y-input-group-list |
templateUrl | input-group-list.component.html |
Methods |
Inputs |
Outputs |
index
|
Type : |
minus
|
Type :
Default value : |
plus
|
Type :
Default value : |
onAdd
|
$event Type: EventEmitter<number>
|
onRemove
|
$event Type: EventEmitter<number>
|
add |
add()
|
Returns :
void
|
remove |
remove()
|
Returns :
void
|
<ng-container>
<div class="input-group">
<ng-content></ng-content>
<div class="input-group-btn">
<button
*ngIf="minus"
title="{{ 'Remove' | translate }}"
class="btn btn-clean text-primary"
(click)="remove()"
>
<i c8yIcon="minus-circle" class="text-danger"></i>
</button>
<button
*ngIf="plus"
title="{{ 'Add' | translate }}"
class="btn btn-clean text-primary"
(click)="add()"
>
<i c8yIcon="plus-circle"></i>
</button>
</div>
</div>
</ng-container>