Hello, a newbie (on jqueryUI) with a question on the resizable.
I can get it to work using the built-in handles, but want to use my
own icon (a div with a background image).
Quoting the documentation:
"If specified as an object, the following keys are supported: { n, e,
s, w, ne, se, sw, nw }. The value of any specified should be a jQuery
selector matching the child element of the resizable to use as that
handle. If the handle is not a child of the resizable, you can pass in
the DOMElement or a valid jQuery object directly."
So the value corresponding to the key should be a jQuery selector.
First I interpreted it as the result of $('some-css-selector'), but
maybe it means the string 'some-css-selector', as given by the
selector property (see below).
Anyway this does not work for me.
var res=$('#v3 .my-resize-icon');
var selector=res.selector;
$('#v3').resizable({handles:{se:selector}});
Neither does {se:res} work.
$('#v3').resizable() works (giving the built-in handle).
Is there any more preconditions on the element to be used as a handle?
I am not sure at all from reading the docs. Is this even supposed to
work?
What is the best next step for me, start reading the code for
resizable? Or are there any examples around, the code example in the
docs only shows the simplest way of providing the handles?
Thanks,
Henrik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---