[jQuery] Accessing/Modifying Plugin Parameters
Hi Everyone,
I'm currently working on something using the Interface Resizable
plugin, but really this is a general JQuery question I guess...
What I want to know is if it is possible to dynamically read and
change the parameters you set for a plugin like this? If, for example,
I instigate a resizable like this:
$('#resizeMe').Resizable(
{
minWidth: 50,
minHeight: 50,
maxWidth: 400,
maxHeight: 400,
minTop: 50,
minLeft: 50,
maxRight: 700,
maxBottom: 500,
dragHandle: true,
handlers: {
se: '#resizeSE',
e: '#resizeE',
ne: '#resizeNE',
n: '#resizeN',
nw: '#resizeNW',
w: '#resizeW',
sw: '#resizeSW',
s: '#resizeS'
},
onResize : function(size, position) {
// DO STUFF HERE
}
}
)
then can I, from within the onResize function, read and change values
such as maxWidth and maxHeight?
Any help much appreciated!
Simon