Skip to content

ListComponent.normalizeItem method

ListComponent › normalizeItem

Turns the typed text into an item. By default, trims it and refuses an empty one.

Signature:

normalizeItem(text: string): null | string

Parameters:

ParameterTypeDescription
textstringThe typed text.

Returns: null | string — The item, or null to add nothing.