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

404 error #74

Open
yarekc opened this issue Apr 28, 2020 · 2 comments
Open

404 error #74

yarekc opened this issue Apr 28, 2020 · 2 comments

Comments

@yarekc
Copy link

yarekc commented Apr 28, 2020

"API and examples: http://jspanel.de/api"

this link leads to 404 error

And I have a question (I know this is not a good place for questions, but I could not find any link)

I used v3 : I have the draggable option like:

            dragit: {
                disableui: false,
            },
            draggable: {
                containment: 'parent'
            }

which let you drag it inside its parent (works great)

My goal is to "pop it out" form the "containment" to "body", so I can drag this panel on th whole body document:
Is there a way to change the containment property on run time or any way to achieve that without having to destroy all panel and create a new one with new containment ?

Thanks again and congratulations for your great work

@Flyer53
Copy link
Owner

Flyer53 commented Apr 29, 2020

Hi there,

API docs for v3.x are here.

With the config you show above you use the jQuery-UI draggable interaction which should be configurable for an existing panel like:

// create panel
var panel = $.jsPanel({
    container: '#container',
    dragit: {
        disableui: false,
    },
    draggable: {
        containment: 'parent'
    }
});
// edit draggable interaction
panel.draggable( "option", "containment", "document" );

See the jQuery-UI draggable docs at https://api.jqueryui.com/draggable/#option-containment

Hope that helps

@Flyer53
Copy link
Owner

Flyer53 commented Jan 5, 2022

@yarekc You never responded this issue anymore. So I gues it's solved?

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