Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component prop isDraggable is not support #68

Open
nick-running opened this issue Nov 6, 2019 · 1 comment
Open

Component prop isDraggable is not support #68

nick-running opened this issue Nov 6, 2019 · 1 comment

Comments

@nick-running
Copy link

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.

@derrabauke
Copy link

derrabauke commented Dec 6, 2020

@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. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants