[symfony-devs] Re: table widget

2007-12-18 Thread rihad

I really think such common functionality as sortable data grids with
paging should be supported by a web framework, and not by a 3rd party
extension. Otherwise many people will have to write the same thing
from scratch over and over again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony developers group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~--~~~~--~~--~--~---



[symfony-devs] Re: table widget

2007-12-18 Thread Ian P. Christian

rihad wrote:
 I really think such common functionality as sortable data grids with
 paging should be supported by a web framework, and not by a 3rd party
 extension. Otherwise many people will have to write the same thing
 from scratch over and over again.

That is indeed what I'm proposing, but.. there's be a surprising lack of 
input :)

-- 

Ian P. Christian ~ http://pookey.co.uk

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony developers group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~--~~~~--~~--~--~---



[symfony-devs] Re: table widget

2007-12-17 Thread Ian P. Christian

Further to this, I was thinking that you could have rows automatically 
show links by doing this:

foreach($data as $d)
{
$row = new sfTableRow(array(
  'col1' = array(
 'value' = $d['something'] . ' ' . $d['something_else'],
 'link' = '@details?id='.$d['id'],
),
));
$table-addRow($row);
}

However... what if you wanted to a single column with this:

edit | details | delete

Where each of those is clearly a link to a different place, my above 
idea won't work at all.

Creating a widget for each cell (rather then each row as suggested 
initially) would be far too heavy I imagine, with 100's of objects being 
created just to show a table.

If anyone's interested in discussing the topic, you can of course find 
me on IRC :)

-- 

Ian P. Christian ~ http://pookey.co.uk

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony developers group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~--~~~~--~~--~--~---