Merge pull request #6367 from jacobtylerwalls/tree-filter-by-getter

#6374 Tree: allow `filterBy` to be a getter
This commit is contained in:
Tuğçe Küçükoğlu 2024-09-24 08:48:44 +03:00 committed by GitHub
commit 74074bc020
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View file

@ -50,9 +50,9 @@ const TreeProps = [
},
{
name: 'filterBy',
type: 'string',
type: 'string | ((node: TreeNode) => string)',
default: 'label',
description: 'When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.'
description: 'When filtering is enabled, filterBy decides which field or fields (comma separated) to search against. A callable taking a TreeNode can be provided instead of a list of field names.'
},
{
name: 'filterMode',