Attach event

Hi, I have such a view:

 "{
                  id: "anim-view-1",
                  cols: [{
                    $subview: AnimationView,
                    name: "AnimationView1"
                  }]
                }"

And I want to attach an event to it.
We added a drag property like this:
"webix.DragControl.addDrag($$("anim-view-1").$view);"
How can I attach an event sucha as onBeforeDrag…

Hello,

Please check the sample: Code Snippet. Maybe it can help you.

onBeforeDrag you can add as

$$('someid').attachEvent("onBeforeDrag", function(context, native_event){
          ...
    return true;
});