I've moved over to YI Library because of the nice Yui-Ext grid
control and because it's much easier to figure out where to store
the UI state in control or "plugin", you keep it in the controller
object.

I'm still curious though, if you had to maintain meta-data about a
control, like the sort function for a particular column in a grid,
where do you store that information in a plugin?

* Alan Gutierrez <[EMAIL PROTECTED]> [2006-11-15 12:37]:
> I'd like to create a Grid for my application.
> 
> I've started here...
> 
> http://blogometer.com/repository/etude/jQuery/grid/grid.html
> 
> ...with the first issue being one of sizing the columns. I'm doing
> this by applying a class to each column and heading in an HTML table
> and then adjusting the rules of the class.
> 
> My creational pattern like so...
> 
> $("#grid").grid({ dataType: 'html' })
> 
> My question is, where do I store state? How do I change my grid in
> the future? Where would I keep an object to adjust grid properties?
> 
> Should I pursue this sort of syntax to change a column's
> sortability?
> 
> $("#grid").sortable(3, false)
> 
> I'd only want sortable for those elements that were now grids.
> 
> Thoughts? The Prototype way to do it is to create an object that
> acts as a controller. I'm not sure of the jQuery way.

-- 
Alan Gutierrez - 504 717 1428 - [EMAIL PROTECTED] - http://blogometer.com/
                Think New Orleans - http://thinknola.com/

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to