[Seaside] JQWidget nested options
Gastón Dall' Oglio
gaston.dalloglio at gmail.com
Thu Sep 1 14:40:43 UTC 2011
Hello.
I'm writing a new JQWidget component and I need generate js code like this
for correctly load of the wrapped plugin:
$("#id").funcname({"op1":[{"subop1":"value1","subop2":"value2",...}],...});
I don't know how do it. I have a method JQMyWidget>>subop1:value, where I
write some [stupid] implementation:
1) self optionAt: 'op1' put: (Array with: 'subop1' with: value) =>
$("#id").funcname({"op1":["subop1","value"]})
2) self optionAt: 'op1' put: ('subop1' -> value) =>
$("#id").funcname({"op1":'subop1'->'value'})
3) self optionAt: 'op1' put: (self optionAt: 'subop1' put: value) =>
$("#id").funcname({"op1":"value","subop1":"value"})
Any idea? Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110901/0c5f9318/attachment.htm
More information about the seaside
mailing list