File

core/forms/input-group-list.component.ts

Metadata

Index

Methods
Inputs
Outputs

Inputs

index
Type : number
minus
Type : boolean
Default value : true
plus
Type : boolean
Default value : true

Outputs

onAdd
Type : EventEmitter<number>
onRemove
Type : EventEmitter<number>

Methods

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>

results matching ""

    No results matching ""