sl-vue-tree icon indicating copy to clipboard operation
sl-vue-tree copied to clipboard

Component prop isDraggable is not support

Open nick-running opened this issue 6 years ago • 1 comments

Glad that our project used your component. I have a issue that you mentioned the newest version v1.8.4 include feature isDraggable since v1.7.0. but it's no any effect when i set isDraggable prop on that component. I searched your relate solved issue to solve that disabled drag effect from #12 . but that solution is not good for doing this. hope you can start complete this feature.

nick-running avatar Nov 06 '19 10:11 nick-running

@nick-running

I have a issue that you mentioned the newest version v1.8.4 include feature isDraggable since v1.7.0. but it's no any effect when i set isDraggable prop on that component.

It's not ment to be used as component prop, instead you have to apply it to each item in the tree like the Interface states:

interface ISlTreeNodeModel<TDataType> {
    title: string;
    ...
    isSelected?: boolean;
    isDraggable?: boolean;
    ...
}

I was trying it as a component prop as well until I figured it out. 😄

derrabauke avatar Dec 06 '20 23:12 derrabauke