Add showCheckedItem to TreeSelect
See original GitHub issueWhat problem does this feature solve?
We don’t always want to show selected nodes inside the input box.
Why? There are at least two use cases needs custom display of selected nodes:
- When there are a lot of options, and user might choose a large number of nodes like the example below, which looks bad, and hard for user to locate any node.
example:
- For TreeSelect, we would like to show hierarchy of selected nodes, instead of just putting everything as same level inside the input box.
What does the proposed API look like?
Just add one new showCheckedItem
to hide control nodes inside input box, and this allows developers to customize the display of selected node, like this:
If this feature is approved, I can make a PR for this.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:18 (8 by maintainers)
Top Results From Across the Web
TreeSelect - Ant Design
Property Description Default
allowClear Whether allow clear false
bordered Whether has border style true
defaultValue To set the initial selected treeNode(s) ‑
Read more >Search Ant Design Tree Select by Title - Stack Overflow
Just to elaborate on the answer provided by @Oliver, you can add the following props: <TreeSelect showSearch treeNodeFilterProp='title' ...
Read more >TreeSelect | Block Editor Handbook
TreeSelect component is used to generate select input fields. ... If this property is added, a label will be generated using label property...
Read more >Angular PrimeNG Form TreeSelect Multiple Component
</p-treeSelect>. Creating Angular Application and Installing the Module: Step 1: Create an Angular application using the following command.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see that, you are right, naming of
showCheckedStrategy
is a little confused.You can try adding
showCheckedItem
.@dpradha , Good point. I agree the
maxTagCount
should support0
to only provide themaxTagPlaceholder
. PR is welcome : )