Welcome Guest, Not a member yet? Register   Sign In
CI table class
#2

[eluser]Maglok[/eluser]
You can do alternating classes like so:
Code:
$tmpl = array (
                    'table_open'          => '<table border="0" cellpadding="4" cellspacing="0">',

                    'heading_row_start'   => '<tr>',
                    'heading_row_end'     => '</tr>',
                    'heading_cell_start'  => '<th>',
                    'heading_cell_end'    => '</th>',

                    'row_start'           => '<tr>',
                    'row_end'             => '</tr>',
                    'cell_start'          => '<td>',
                    'cell_end'            => '</td>',

                    'row_alt_start'       => '<tr>',
                    'row_alt_end'         => '</tr>',
                    'cell_alt_start'      => '<td>',
                    'cell_alt_end'        => '</td>',

                    'table_close'         => '</table>'
              );

$this->table->set_template($tmpl);
See user_guide: http://ellislab.com/codeigniter/user-gui...table.html

I take it you want more customization, I personally use some custom code then because the table class isn't that expansive.


Messages In This Thread
CI table class - by El Forum - 03-17-2010, 08:01 AM
CI table class - by El Forum - 03-17-2010, 08:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB