1 import { Component, Input, ViewChild } from '@angular/core';
2 import { ValidatorFn } from '@angular/forms';
4 import { I18n } from '@ngx-translate/i18n-polyfill';
5 import * as _ from 'lodash';
7 import { SelectMessages } from '../select/select-messages.model';
8 import { SelectOption } from '../select/select-option.model';
11 selector: 'cd-select-badges',
12 templateUrl: './select-badges.component.html',
13 styleUrls: ['./select-badges.component.scss']
15 export class SelectBadgesComponent {
17 data: Array<string> = [];
19 options: Array<SelectOption> = [];
21 messages = new SelectMessages({}, this.i18n);
23 selectionLimit: number;
27 customBadgeValidators: ValidatorFn[] = [];
29 @ViewChild('cdSelect')
32 constructor(private i18n: I18n) {}