Add Row
The add_row() method is used to define a row of table data cells in your table.
add_row (array row)
- row: an array of cell values for the table | required
Example:
$row = array(
'John',
'Green',
'Medium'
);
$this->badtable->add_row($row);
add_row (array row [,array attributes])
- row: an array of cell values for the table | required
- attributes: an associative array specifying attributes for the row. | optional
Example:
$row = array(
'John',
'Green',
'Medium'
);
$attr = array(
'class' => 'highlight',
'id' => 'key-row'
);
$this->badtable->add_row($row, $attr);
add_row (string row1 [, string row2 [, string row...]])
- row: define your rows as discrete params | required
Example:
$this->badtable->add_row('John', 'Green', 'Medium');
add_row (string row1 [, string row2 [, string row... [, array attributes]]])
- row: define your rows as discrete params | required
- attributes: an associative array specifying attributes for the row. Must be the last parameter. | optional
Example:
$attr = array(
'class' => 'highlight',
'id' => 'key-row'
);
$this->badtable->add_row('John', 'Green', 'Medium', $attr);