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.

how to force getChildren event to fire

See original GitHub issue

angular2-tree-component:^3.1.0

After moving a node into the collapse node, I click this collapse node that can’t fire getChildren event.

  • Although this node property hasChildren is true and this node still has other sub nodes. I want to click this collapse node to fire getChildren event and fetch all sub node data.

  • if I use to.parent.loadChildren, when click this collapse node, these sub nodes can be displayed, but when i move one of these sub nodes to other node, this collapse node displays loading and never finished, at this time, the input node source data of has updated

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tsawyer999commented, Jul 27, 2017

Ho Ho Finalxcode!

I had a similar issue where the children property of my node object was initialized with empty array.

When I set properties hasChildren to true and children to undefined, angular-tree-component started to call getChildren.

Is it help?

0reactions
tobiasengelhardtcommented, Jul 7, 2020

Closing this issue due to inactivity. Please open a new issue if the problem still exists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to force getChildren event to fire · Issue #369 - GitHub
I want to click this collapse node to fire getChildren event and fetch all sub node data. if I use to.parent.loadChildren , when...
Read more >
How to have click event ONLY fire on parent DIV, not children?
If the e.target is the same element as this , you've not clicked on a descendant. $('.foobar').on('click', function(e) { if (e.target !== this)...
Read more >
How to press right click 3 times to fire event? - Scripting Support ...
PlayersAndMobs for i,v in pairs(ws:GetChildren()) do -- look through all the workspace if ... lookVector * 45 + Vector3.new(0,7,10) -- the force game....
Read more >
JavaScript dispatchEvent(): Generate Events programmatically
First, create a new Event object using Event constructor. · Then, trigger the event using element.dispatchEvent() method.
Read more >
Basic fire escape planning > Whiteman Air Force Base > Article ...
This is a great way to get children involved in fire safety in a non-threatening way. ... to assist them in the fire...
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