List Info

Thread: create arbitrary grid




create arbitrary grid
country flaguser name
United States
2008-07-07 11:03:33

HI There,

How can I use YUI to create a grid of N number of columns, each with
custom widths, and N number of rows?

I really love the templates YUI comes with, with I always find myself
wanting to customize the widths and number of columns. I'm sure
there's a really simple way to do this, but I just don't know.

Thanks

__._,_.___
.

__,_._,___
Re: create arbitrary grid
country flaguser name
United States
2008-07-07 11:14:55

>
> How can I use YUI to create a grid of N number of columns, each with
>; custom widths, and N number of rows?
>

The columndefs allow for definition of the width of each cell.
Columns also can be virtual columns that do not necessarily have to
exist. Have a look at Satyams Article on the DataTable where he
creates a delete-column
(http://yuiblog.com/blog/2007/09/26/satyam-datatable-2/) or look
through the examples where data sometimes simply is made up.

For the rows, you can easily create a local JavaScript-Array with
Dummy-Data and use this as source.

The basic sample uses one that already exists in the DOM, but you
could easily write that via javascript

http://developer.yahoo.com/yui/examples/datatable/dt_basic.html

HTH

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )