jquery - setting plugin defaults? -
I'm talking to someone else's plugin, not my own I want to do it without touching my code (I want to do it in a separate file).
I thought there was a way to do this, like something:
$. Default.pluginname or something else?
It relies entirely on the plugin and how it was written. For older people, this time is usually supported ( most of the time) but it is definitely not guaranteed and certainly is different from that they plug How did these coded ... Because there are dozens of different fundamental ways to do this.
If you want to post the actual plugin that you want to modify then we can tell you the best method, but there is no guarantee that you can without Editing your code
Edit: Because you're using you can highlight the default setting before calling .colorbox ()
:
$ colorbox.settings.opacity = 0.5; // Background opacity for example
Anyone set this way.
Comments
Post a Comment