ngx-choices
Version:
Angular 4+ typehead to search and select multiple tags.
35 lines (34 loc) • 910 B
TypeScript
import { HttpParams, HttpHeaders } from "@angular/common/http";
import { NGX_CHOICES_MODE } from "./ngx-choices.enum";
export interface NGX_CHOICES_CONF {
mode?: NGX_CHOICES_MODE;
value?: string;
label?: string;
meta?: string;
avatar?: string;
avatar_url?: string;
unique?: boolean;
filter?: boolean;
remoteFilter?: {
url: string;
queryParams?: HttpParams;
headers?: HttpHeaders;
searchParam?: string;
};
placeholder?: string;
pattern?: RegExp;
minLength?: number;
maxLength?: number;
maxSelections?: number;
hideInputOnMaxSelections?: boolean;
acceptUserInput?: boolean;
style?: {
minInputWidth?: string;
choiceElementHeight?: string;
choiceBorderRadius?: string;
};
}
export interface NGX_CHOICES_ERROR {
type: string;
msg: string;
}