Re: Re: Proposal - HTMLDataGrid

From: Date: Tue, 13 Jan 2004 20:35:11 +0000
Subject: Re: Re: Proposal - HTMLDataGrid
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25038@lists.php.net to get a copy of this message
"Joe Stump" <joe@joestump.net> wrote in message news:3870.64.109.113.78.1074021803.squirrel@mail.jerum.com... > I'd like to see a more complex example that addresses the following issues: > > 1.) Can I use CSS? Since it uses HTML_Table, you can specify a class attribute for the table. Eventually you will be able to specify a class attribute for the td and tr tags as well. *** I just found a bug with this, so it doesn't work yet. It will work soon though, so the answer is yes! Also, I would like to take Markus Wolff's ideas of a "render" and also render out the grid into pure CSS instead of an html table. > 2.) I see the class has paging, but the example doesn't contain that The paging is not complete, it still has a lot more work to be done. At the moment it only generates links at the bottom of the table (this is bad in of itself, it needs to be abstracted). In my example I have 3 records, I set the limit to 2 records and you will now see that there are 2 page links. (nothing impressive here yet) > 3.) I see it uses DB_DataObject (or can), but there's no example of that I will add this to the example eventually ... I haven't even tested it, this is still a new part of the datagrid that I am still planning out. I love DB_DataObject so I want to allow full support of it! > 4.) Can I add columns that don't directly contain data (ie. a column that > has links to delete/update the given record)? Yes! I have added this to the example. At the moment, if you don't use data for the column, it displays the title of the column as the link, this is in my plan to improve :) > Other than that I like how you've put together the classes by adding > columns and then adding records Thanks, I am trying my hardest to mimic the .net DataGrid approach > (I really like the idea that it works with DB_DataObject). Me to, I was able to build a large scale MVC designed portal in pure PHP with DB_DataObject in only 8 months with the help of 2 college students. It saved me so much time! > > --Joe > > > > > http://webitecture.org/HTMLDataGrid/ > >

« previous php.pear.dev (#25038) next »