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

Is there a way to disable drag and drop ? #6

Open
Donald2010 opened this issue Oct 6, 2024 · 1 comment
Open

Is there a way to disable drag and drop ? #6

Donald2010 opened this issue Oct 6, 2024 · 1 comment

Comments

@Donald2010
Copy link

How to make panels not draggable in CodeLayout ?

imengyu added a commit that referenced this issue Oct 8, 2024
@imengyu
Copy link
Owner

imengyu commented Oct 8, 2024

I have added draggable attribute to each panel, can set it to false, so the panel can't be dragged, you can update to latest version.

grid.addPanel({
    name: `NodeEditor${doc.uid}`,
    title: doc.name,
    draggable: false, //No drag
});

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