You could either modify the draggable options after init, or tell the
dialog not to be draggable, then make it draggable yourself (more
forward-compatible).
Modify:
$(el)
.dialog({
draggable: true
})
.parents('.ui-dialog')
.draggable('options', 'handle', null);
Do it yourself:
$(el)
.dialog({
draggable: false
})
.draggable();
In this case the dialog content div is draggable, so if you're using
buttons the button pane won't be draggable.
On Jul 13, 4:19 am, Veeru <[email protected]> wrote:
> Hi there
> i was wondering if there is a method or property that would all a ui
> dialog to be dragged by its body and not the title bar.
> In my webpage the title bar for a ui-dialog is hidden, but i would
> love to give the user drag functionality by clicking and dragging the
> dialog body itself.
> Is this possible?
>
> Thanks
> Vru
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---