1 import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';
2 import { ValidatorFn } from '@angular/forms';
4 import { Icons } from '~/app/shared/enum/icons.enum';
5 import { SelectMessages } from '../select/select-messages.model';
6 import { SelectOption } from '../select/select-option.model';
7 import { SelectComponent } from '../select/select.component';
10 selector: 'cd-select-badges',
11 templateUrl: './select-badges.component.html',
12 styleUrls: ['./select-badges.component.scss']
14 export class SelectBadgesComponent {
16 data: Array<string> = [];
18 options: Array<SelectOption> = [];
20 messages = new SelectMessages({});
22 selectionLimit: number;
26 customBadgeValidators: ValidatorFn[] = [];
29 selection = new EventEmitter();
31 @ViewChild('cdSelect', { static: true })
32 cdSelect: SelectComponent;