Filter by Params
#
ExampleSimple list that can become searchable by parameters.
#
EmptyWhen fields have no list it shows emptyState.
Empty
#
LoadingShow loading spinner by loading
prop.
#
CountShow count numbers by giving them to counts
prop.
#
MultipleMake it possible to select multiple items by multiple
prop.
#
SearchableAdd search bar on top of the list and make it searchable with searchable
prop.
#
IconAdd avatar by icon
prop.
#
ColorAdd custom color to icon by colorCode
prop.
#
Tree viewShow tree view list by treeView
prop. Fields should have _id
and parentId
.
#
RelatedFind sum of all the related items by id with relatedIds
prop. It shows on the item, defined the relatedId
prop.
#
APIName | Type | Defualt | Description | |
---|---|---|---|---|
fields | _id | string | Define id | |
name | string | Define name | ||
colorCode | number | Add custom color | ||
parentId | string | Define parent id | ||
relatedIds | array | Define related items' ids | ||
counts | any | Define count numbers of list items | ||
paramKey | string | Key, used when onClick function runs. | ||
icon | string | Add icon to list items | ||
loading | boolean | Activates loading spinner | ||
searchable | boolean | Add search bar and make the list searchable | ||
multiple | boolean | false | Make it possible to select multiple items | |
treeView | boolean | Activates tree view of list | ||
update | boolean | Define function to filter items |