Added mixin DragItem to custom component, now what??

I gotta say, your documentation is some of the worst I’ve seen for commercial 3rd-party libraries. Lots of conflicting information, poor/undecipherable grammar, out-of-date, and nowhere near enough examples and samples.

Anyway, on to my question: I’m creating a custom component using:

webix.protoUI({ ... }, webix.ui.layout, webix.DragItem);

I want this custom component to be draggable. I’ve tried multiple different things, including setting properties and attaching to drag events … nothing works and there is no documentation about how to do this. How can I get my custom component to be draggable and respond to the normal events present on the DragItem, like onBeforeDrag? I have gotten the custom control to be draggable by calling webix.DragControl.addDrag(this.$view); in the $init() method, but I don’t think this is the correct way to inherit from DragItem, is it?

Hello @velocitytoo ,

I can suggest the following views which you can drag anywhere you want on the page: