question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expose onSelect event to Tree component

See original GitHub issue

Hi James,

I need to listen for the tree node select event via the Tree component. Would it be possible to add this?

My use case is I’m using check-boxes to select multiple tree nodes using the handlers.select which has shift-click but I only want one event to fire.

Kind regards, Marten

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jameskerrcommented, Sep 26, 2022

Yes! This is in the works.

0reactions
jameskerrcommented, Oct 18, 2022

Awesome. That makes sense. The selection prop in version 2 will do exactly what you want. That was my use case as well.

Mine was like VSCode where you have tabs and each time you switch tabs, I wanted the selection to change to match the tab.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support onPressEnter event for TreeSelect component #12955
The tree select component based on rc-tree-select. It has its own default search handler and change handler. Here is an example based on...
Read more >
Customize Actions - Getting Started
Angular Tree Component comes with a default mapping of mouse events and key events to actions. For example - click on the node...
Read more >
Tree component onSelect performs load on demand (onOpen ...
The tree lists the items from the database (3 data types). This tree component uses the load-on-demand features where the node class method, ......
Read more >
Perspective Event Types Reference - Ignition User Manual 8.0
Perspective Events provide the opportunity to handle any type of user input or session event as you see fit.
Read more >
How to bind event listener for rendered elements in Angular 2?
import { AfterViewInit, Component, ElementRef} from '@angular/core'; constructor(private elementRef:ElementRef) {} ngAfterViewInit() { this.elementRef.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found