Multi select

Multiselects for typing multiple options

Contents

Default validation

Dynamic validation - First validation happens only on blur, and validates on keyup once an error exists

Inputs in Validation
dynamicValidation ?: boolean = false

First validation happens only on blur, and validates on keyup once an error exists

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>()