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.

[Question] Any/Trigger event when any block is dropped inside canvas?

See original GitHub issue

Hey, How can I trigger some event when any new block or content inside canvas is updated? Something like editor.onCanvasUpdate()

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
artfcommented, Nov 30, 2017

I’d add also a block specific event

editor.on('block:drag:stop', model => console.log('dropped ', model))
1reaction
duskhackercommented, Nov 29, 2017

When I asked to find out when the canvas is dirty to provide an indicator, @artf told me:

editor.on('change:changesCount', (editorModel, changes) => {
  
    if (changes) {
  // do something with changes 
    } else {
     // do something else with no changes 
    }
  });
  
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to trigger a drop event for any of the item dragged and ...
You can do this by querying your container using document.querySelector('.container') and then attach the proper event listners with target.
Read more >
Canvas FAQs - Braze
The summary block at the beginning of a Canvas reflects all conversions performed by users within that path, whether or not they received...
Read more >
Post-Block Trigger
Any trigger that is associated with these events will fire before the When-Mouse-Click trigger fires. Definition Level form, block, or item. Legal Commands....
Read more >
Oracle Forms Interview and Answer
Question 6: What are Canvases in Oracle Forms and describe different ... Any event that changes the current record in a Master block...
Read more >
D Forms Error Messages - Oracle Help Center
If the problem persists, contact Oracle Support Services. Level: 25. Trigger: None. FRM-10207: No ... FRM-40106: No navigable items in destination block.
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