This was never recommended nor supported and is one of the reasons we've
moved away from this API. In this case you're accessing the internal dialog
instance, and when returned, an internal property (which is undocumented,
could change in a point release etc).
There's no way to get this element through the API, but you can use css.
Because the dialog is created by calling .dialog([options]) on the content
element of the dialog, you first need to get the parent (wrapper) dialog
element:
var contentEl = $("<div>dialog content</div>").dialog();
var dialog = $(contentEl).parents(".ui-dialog:first");
then you can search inside the top-level ui-dialog element for the button
pane:
var buttonpane = dialog.find(".ui-dialog-buttonpane");
- Richard
On Tue, Jan 13, 2009 at 6:55 PM, tropperstyle <[email protected]>wrote:
>
> So now how would I access what used to be: $(el).data
> ('dialog').uiDialogButtonPane
>
>
> On Dec 30 2008, 11:01 pm, "Richard D. Worth" <[email protected]>
> wrote:
> > The 1.5 API is/was
> >
> > $(el).data("optionname.pluginname", newVal)
> >
> > In 1.6 it is/will be
> >
> > $(el).pluginname("option", "optionname", newVal)
> >
> > [In either case newVal can be omitted and it's a getter instead of a
> setter]
> >
> > It's not documented yet because 1.6 isn't released yet.
> >
> > - Richard
> >
> > On Wed, Dec 31, 2008 at 1:43 AM, tropperstyle <[email protected]
> >wrote:
> >
> >
> >
> > > Hmm. I'll have to take a look through the source. Is this 'option'
> > > syntax supposed to be exposed as the public API? (It's not currently
> > > documented) Can this be reliable for use with 1.6+? Seems similar to
> > > the .data('option.dialog') syntax, is there any relationship?
> >
> > > On Dec 30, 4:52 pm, Scott González <[email protected]> wrote:
> > > > You can tell a dialog to reposition itself with one line of code:
> >
> > > > $(el).dialog('option', 'position', $(el).dialog('option',
> > > > 'position'));
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---