Welcome Guest, Not a member yet? Register   Sign In
colspan in HTML Table class
#1

[eluser]jepotski[/eluser]
how to add a colspan attribute for a row using html table class?

iam using this method but it doesn't work.

Code:
$reccell = array('data' => 'NAME', 'colspan' => 2);

$this->table->add_row($reccell);

what happens is it adds a new cell with '2' as its data.
Code:
| NAME |  2  |
#2

[eluser]Krzemo[/eluser]
AFAIK there is no such possibility.
#3

[eluser]jepotski[/eluser]
[quote author="Cshamoh" date="1286470646"]AFAIK there is no such possibility.[/quote]

Then why it states in this user guide that it is possible.

Code:
http://mpolr.21region.org/user_guide/libraries/table.html
#4

[eluser]Krzemo[/eluser]
you did not mention you are using CI 2.0... are you?
#5

[eluser]jepotski[/eluser]
is there already a CI 2.0? I am using version 1.7, is it possible that I only copy the Table library from CI 2.0?
#6

[eluser]Krzemo[/eluser]
you are for sure using user guide from CI2.0, thus inconsistency
its not officially released yet but I'm personally already using it
#7

[eluser]jepotski[/eluser]
where can i download the CI 2.0?
#8

[eluser]Krzemo[/eluser]
http://codeigniter.com/news/ellislab_mov....0_baking/
#9

[eluser]InsiteFX[/eluser]
Code:
$tmpl = array ( 'table_open'  => '<table border="1" cellpadding="2" cellspacing="1" class="mytable">' );

$this->table->set_template($tmpl);

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB