Unplanned
Last Updated: 26 Jul 2023 08:11 by Marcus
Maxime
Created on: 18 Oct 2016 17:26
Category: Sortable
Type: Feature Request
19
Add a drag handle option for the Sortable
Every drag and drop library I have used in the past support a handle option, meaning that the drag of an item only occurs if the the user has clicked on a specific child element of the item. Normally this option's value is a selector.

<kendo-sortable [data]="tracksData" [handle]="#headerBar">
    <template let-trackData="item">
        <track [tempo]="trackData.tempo"></track>
    </template>
</kendo-sortable>

Where #headerBar is the selector of an indirect or direct child element of TrackComponent.

I don't see how this can be achieved with the current API, but perhaps I'm wrong.

Here are 2 examples of an API for a handle option:
- jQuery UI
- dragula

Github ticket: https://github.com/telerik/kendo-angular2/issues/57#issuecomment-254558547
2 comments
Marcus
Posted on: 26 Jul 2023 08:11
ALL components that support drag and drop should have the same behavior/setting options (for styles, auto scroll (nearest parent), drag hint, drag handler/target, drag delay, etc.)
Seyfor
Posted on: 08 Sep 2018 08:31
+1