| Issue 334: | How can I assign one array settings to the default? | |
| 2 people starred this issue and may be notified of changes. | Back to list |
|
Please provide any additional information below.
First, Thanks for your effort and made this plugin,I like it very much.
Right now I wrote a plugin myself and based on nyroModal, In this case I
need to assign a whole array to default settings. But too many time I
failed. It seems too simple for you,thanks for help.
I want to import total param in options to nyroModal default settings, like
this:
$.nyroModalSettings = jQuery.fn.extend({}, options);
But actually failure.How can I achive this?
Sep 26, 2009
I know that, but actually I wrapped nyroModal plugin in mine. So I need to import settings one-pass entirely, not one by one. Any ways?
Sep 27, 2009
with nyroModalSettings function, you can pass as many setting as you want. |
||||||||
It causes failure because $.nyroModalSettings is actually a function. To set default settings, use it like: $.nyroModalSettings({ setting1: 'value1', setting2: 'value2' });