Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
Antd tree select customization to have child with same name without confusing user

As shown in image for two different parents, child title to be shown is same in tree select dropdown. In such scenario is there any possibility to show all children related to one parent at one place or in one color without changing title name. From my understanding, I don't find any solution for this. Any help is highly appreciated.

enter image description here

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Key and text values on tree items are different from each other. That's why you can create a method to edit the keys when passing the tree items to the antd component. E.g:

    function getTreeItmes(items,parent) {
       return items?.map(i => {
         return {
              ...i,
              key:parent?.key + '.' + i.key,
              items:getTreeItems(i.children,i)
             }
    });
 }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!