Flyer53 / jsPanel3

A jQuery Plugin to create highly configurable floating panels, modals, tooltips, hints/notifiers or contextmenus for use in a backend solution and other web applications.
http://v3.jspanel.de/
Other
89 stars 21 forks source link

[Question]Is it possible to enable resize for panels under 'modal' style? #54

Closed ZhaoC closed 7 years ago

ZhaoC commented 7 years ago

Hi Stefan, I'm wondering is it possible to enable resize functionality when create a panel under ‘modal’ style. I notice that you explicitly exclude the ’jspanel-modal’ in method ‘resetZis()’ and other configurations for 'modal' style. Can I make the panel resizable without override your existing corresponding methods? Thank you!

Flyer53 commented 7 years ago

Yes you can:

$.jsPanel({
    paneltype: 'modal',
    resizeit: true
});

will create a modal panel that is resizable (using the built-in resizeit option). Or:

$.jsPanel({
    paneltype: 'modal',
    resizeit: true,
    dragit: true
});

and it's also draggable via the built-in dragit option.

ZhaoC commented 7 years ago

got it, thanks a lot!