<cd-select #cdSelect
           [data]="data"
           [options]="options"
           [messages]="messages"
           [selectionLimit]="selectionLimit"
           [customBadges]="customBadges"
           [customBadgeValidators]="customBadgeValidators"
           elemClass="me-2 select-menu-edit"
           (selection)="selection.emit($event)">
  <i [ngClass]="[icons.edit]"></i>
</cd-select>

<span *ngFor="let dataItem of data">
  <span class="badge badge-dark me-2">
    <span class="me-2">{{ dataItem }}</span>
    <a class="badge-remove"
       (click)="cdSelect.removeItem(dataItem)">
      <i [ngClass]="[icons.destroy]"
         aria-hidden="true"></i>
    </a>
  </span>
</span>
