Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda