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

186
Visualizações
change double click to simple click in tree.js code

I've not been able to modify the code from tree.js to allow user to open a folder when clicking on a node (folder name). You can see the website I'm building here where the folder named "notes" appears at the top left.

For the moment one needs to double click on the folder name or simple click on the arrow to open the folder. I cannot see where double click is called in the code.

I would like to simple click the folder's name to open it.

enter image description here

Thanks ! my code for this site is in this github branch. It is generated with Hugo, but better look at tree.js for the source that I'm using.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

There is no need to modify the code. Just manually open on select event.

tree.on('select', e => {
  if (e.tagName === 'SUMMARY') {
    tree.open(e.parentElement);
  }
});

from https://github.com/lunu-bounir/tree.js/issues/1

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