Skip to content

Arguments doesn't pass to dialog#89

Closed
theaspect wants to merge 1 commit into
jquery:masterfrom
theaspect:master
Closed

Arguments doesn't pass to dialog#89
theaspect wants to merge 1 commit into
jquery:masterfrom
theaspect:master

Conversation

@theaspect
Copy link
Copy Markdown

$( ".selector" ).dialog({
open: function(event, ui) { ... }
});

now you can call $("smth").dialog("open",arg) so arg will be passes to ui

@scottgonzalez
Copy link
Copy Markdown
Member

The ui hash is widget specific and is not meant to provide user data.

@theaspect
Copy link
Copy Markdown
Author

so, why ui in dialog show always "{ }"

@scottgonzalez
Copy link
Copy Markdown
Member

Because there's nothing of importance to pass.

@theaspect
Copy link
Copy Markdown
Author

ok, lack of documentation
how i can pass some data to event?

@scottgonzalez
Copy link
Copy Markdown
Member

You don't. The way you would accomplish whatever you're trying to do depends on what your'e trying to do. Please use the forums for help.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants