Multi select

Multiselects for typing multiple options

Contents

Default - Item is added when the it is clicked or the Enter key is pressed

allowInputOnBlur is set to true - Item is added when it is clicked, the Enter key is pressed, or the input field is blurred

Inputs in Allow input on blur
blurBehaviour ?: MultiSelectInputBlurBehaviour = 'clear'

What the input should do when blurred. - 'clear' empties the field (default) - 'add' adds the current value as a multiselect item - 'none' leaves the text

Also set in this example
control : FormControl<readonly T[]>
options ?: readonly SelectItem<T>[] = []
placeholder ?: string

default placeholder when there's no entry yet

Outputs
inputChange ?: any = new EventEmitter<string>()
itemRemoved ?: any = new EventEmitter<T | string>()

This event carries the item that was removed.

onBlur ?: any = new EventEmitter<void>()
onFocus ?: any = new EventEmitter<void>()