Possible to specify ID and Class to a tbale generated from the table class? |
For CSS I would like to apply an ID and a class to a table generated using the CI table class - how would I do this please?
@colin147,
You could create templates that use an specific ID and class when generating a table. There is an example in the documentation of how to create a template ( https://www.codeigniter.com/user_guide/l...le%20class ).
(11-20-2017, 06:02 AM)colin147 Wrote: For CSS I would like to apply an ID and a class to a table generated using the CI table class - how would I do this please? It is quite easy. You simply adjust the template used to build the table. In this example a class and id are added to the table opening tag. PHP Code: $template = array( Read all about it: Documented here.
The best place I found to place the Table Templates is in the MY_Controller.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |