Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Ability to add HTML attributes to a table row such as class or id #2540
//add the row to the rows array $rows=array('data'=>$row, 'class'=>'warning'); echo $this->table->generate($rows);
I think you have been extremely short sighted.
This is such an oversight to ignore the need for the ability to add classes to table rows.
Zurb Foundation and Twitter Bootstrap and many other modern HTML frameworks applies classes to table row. There is many great use cases for classes to be added to table rows.
The only reason for adding in the array/string usages is to match the current implementation.
I think this is offensive.
I spent 2 hours of my own time trying to implement this in an appropriate way - that's not ignorance. With how the library currently works, this is simply just not achievable.
As I said - I myself like that feature, which (unlike your assumptions so far) actually implies that I also think it is a need. But while it might work for you, it will not be universal and that's a big factor.
If/when the possibility to pass strings to
CodeIgniter is not Zurb Foundation or Twitter Bootstrap.
Who said there aren't?
This sentence doesn't make any sense.