Is anyone aware of any jQuery plugins that can work with a dynamic options object?
What I mean is, I need to be able to pass in:
$('div').somePlugin({title : 'title1', label : function(element){}, etc.});
and also
$('div').somePlugin({name : 'name1', url : function(element){},
event : 'event1', etc.});
So the options object needs the ability to have a variable number of items, key names, and values that can either be static or functions. If it's a function, I need to be able to evaluate the function before passing the value back from the plugin.
I realize it's hard for you guys to really help without further specifics, which is why I thought I should see if I can learn from any examples there might already be out there of something like this.
Thanks.