You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To follow one-way data flow in Vuejs 2, model value will not be updated automatically on drake events inside the directive. Updated model will be emitted with events.
Using event bus allow us handle events directly in other components. And we need to update models manually.
For "in component" drag&drop we just update model, but for "cross-component" drop&drop(or copy) actions, target and source needs to be update separately.
Currently a dropTarget is exposed in event payload:
eventTarget={el: target,// Target elementmodel: targetModel,// updated model of target componentexpression: targetExpression// the expression for directive}
Uh oh!
There was an error while loading. Please reload this page.
2.0 Changes
Plugin API
created
hookModel data flow
To follow one-way data flow in Vuejs 2, model value will not be updated automatically on drake events inside the directive. Updated model will be emitted with events.
Using event bus allow us handle events directly in other components. And we need to update models manually.
For "in component" drag&drop we just update model, but for "cross-component" drop&drop(or copy) actions, target and source needs to be update separately.
Currently a
dropTarget
is exposed in event payload:Here's a simple example:
Please try with the new version and leave feedbacks
The text was updated successfully, but these errors were encountered: