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

184
Views
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 answers
Answer question

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 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!