core/forms/input-group-list.component.ts
| selector | c8y-input-group-list |
| templateUrl | input-group-list.component.html |
Methods |
Inputs |
Outputs |
| index |
Type : number
|
| minus |
Type : boolean
|
Default value : true
|
| plus |
Type : boolean
|
Default value : true
|
| onAdd |
Type : EventEmitter<number>
|
| onRemove |
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>