jsPanel3 icon indicating copy to clipboard operation
jsPanel3 copied to clipboard

404 error

Open yarekc opened this issue 4 years ago • 2 comments

"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

yarekc avatar Apr 28 '20 10:04 yarekc

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 avatar Apr 29 '20 21:04 Flyer53

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

Flyer53 avatar Jan 05 '22 08:01 Flyer53