Set Heading
The set_heading() method is used to define a row of table heading cells in your table.
set_heading (array heading)
- heading: an array of cell values for the table | required
Example:
$heading = array(
'Name',
'Color',
'Size'
);
$this->badtable->set_heading($heading);
set_heading (array heading [,array attributes])
- heading: an array of cell values for the table | required
- attributes: an associative array specifying attributes for the row. | optional
Example:
$heading = array(
'Name',
'Color',
'Size'
);
$attr = array(
'class' => 'highlight',
'align' => 'center'
);
$this->badtable->set_heading($heading, $attr);
set_heading (string heading1 [, string heading2 [, string heading...]])
- heading: define your headings as discrete params | required
Example:
$this->badtable->set_heading('Name', 'Color', 'Size');
set_heading (string heading1 [, string heading2 [, string heading... [, array attributes]]])
- heading: define your headings as discrete params | required
- attributes: an associative array specifying attributes for the row. Must be the last parameter. | optional
Example:
$attr = array(
'class' => 'highlight',
'align' => 'center'
);
$this->badtable->set_heading('Name', 'Color', 'Size', $attr);