Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onNodeDoubleClick event emitter to Tree component #17401

Closed
Xeway opened this issue Jan 15, 2025 · 0 comments · Fixed by #17284
Closed

Add onNodeDoubleClick event emitter to Tree component #17401

Xeway opened this issue Jan 15, 2025 · 0 comments · Fixed by #17284
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@Xeway
Copy link
Contributor

Xeway commented Jan 15, 2025

See PR #17284.


The PrimeNG Tree component lacks an event emitter for double-click events on nodes. Don't you think it would be nice to add this emitter?
It would work like onNodeContextMenuSelect emitter, except it's triggered when the user double click on a node.

Usage example:

<p-tree 
  [value]="nodes" 
  (onNodeDoubleClick)="handleNodeDoubleClick($event)">
</p-tree>

Event object:

{
  node: TreeNode; // The double-clicked node
  originalEvent: Event; // The original DOM event
}
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 15, 2025
@mertsincan mertsincan added this to the 19.0.6 milestone Jan 15, 2025
@github-project-automation github-project-automation bot moved this to Review in PrimeNG Jan 15, 2025
@mertsincan mertsincan added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 15, 2025
@mertsincan mertsincan changed the title Improvement idea: Add onNodeDoubleClick event emitter to Tree component Add onNodeDoubleClick event emitter to Tree component Jan 15, 2025
@github-project-automation github-project-automation bot moved this from Review to Done in PrimeNG Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants