Alan Gutierrez schrieb:
> A controller object is returned..
>
> var grid = null
> $("grid").grid({
>     data: data,
>     onComplete: function(controller)  { grid = controller }
> })
> grid.srollToRow(6)
>   
I favor that approach, modified:

var gridControl = $("#grid").grid(data);
gridControl.scrollToRow(6);

I don't mind breaking the chain in that case.

The nice thing: You can still use jQuery's documentation system when 
writing your own objects and methods.

It would be nice to hear other's opinions on this topic, in the end, 
more stuff for the plugin authoring guide may be the result.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to