Welcome Guest, Not a member yet? Register   Sign In
where is rowspan in table class
#7

[eluser]Unknown[/eluser]
[quote author="mysterious" date="1274774854"]i have created a table using table class, can't find any function or way for row and colspan. Can anyone help me??[/quote]

I know this one is a bit old, but I found this topic via google and I know the answer, so I'm posting it here. Here's the solution for adding `colspan` and `rowspan` to the table without extending the library:

Code:
ee()->table->add_row(
    'first col',
    'second col',
    array('rowspan' => '2', 'data' => 'extra tall')
);
ee()->table->add_row(
    array('colspan' => '2', 'data' => 'extra wide')
);

The core CodeIgniter library supports either a string or an associative array for a value. If an associative array is provided all key/value pairs are translated to attribute/value pairs with the exception of an entry with the array key of 'data'. the value for the key 'data' is used as the content of the table cell.


Messages In This Thread
where is rowspan in table class - by El Forum - 05-25-2010, 01:07 AM
where is rowspan in table class - by El Forum - 05-25-2010, 07:51 AM
where is rowspan in table class - by El Forum - 05-25-2010, 09:42 AM
where is rowspan in table class - by El Forum - 05-25-2010, 03:11 PM
where is rowspan in table class - by El Forum - 05-25-2010, 10:26 PM
where is rowspan in table class - by El Forum - 05-26-2010, 07:24 AM
where is rowspan in table class - by El Forum - 10-09-2014, 09:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB