English
latest (v4.7.0)

Filter KIT

Description and examples API Setup Source code
-
Name and descriptionType Value
[badgeHandler]
Function that gets and item and returns a badge value. Uses valueOf to get a number to show by default
TuiHandler<T>
item=>Number(item)
[content]
Template for custom content in filter
PolymorpheusContent
[disabledItemHandler]
A handler that gets a date and returns true if it is disabled.
Must be a pure function
TuiBooleanHandler<T>
()=>!1
[identityMatcher]
Function that matches value and items, e.g. if objects are copied. Uses === by default. Must be a pure function
TuiIdentityMatcher
[items]
Filter items. Can be an array of strings or an array of objects. If no custom template provided, it uses toString for view
T[]
['Alex Inkin', 'Roman Sedov']
[size]
Size
TuiSizeS  |  TuiSizeL
'l'
(toggledItem)
toggled event of item
T Emit!