Tree: allow filterBy to be a getter

This commit is contained in:
Jacob Walls 2024-09-09 16:56:48 -04:00
parent acfba694f9
commit 42f2c6f969
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',