JGrid
class JGrid
JGrid class to dynamically generate HTML tables
Methods
Constructor for a JGrid object
Magic function to render this object as a table.
Method to set the attributes for a table-tag
Get the Attributes of the current table
Returns the list of internal columns
Delete column by name
Method to set a whole range of columns at once This can be used to re-order the columns, too
Adds a row to the table and sets the currently active row to the new row
Method to get the attributes of the currently active row
Method to set the attributes of the currently active row
Get the currently active row ID
Set the currently active row
Set cell content for a specific column for the currently active row
Get all data for a row
Get the IDs of all rows in the table
Render the HTML table
Details
JGrid
setTableOptions(
array $options = array(),
bool $replace = false)
Method to set the attributes for a table-tag
JGrid
setColumns(
array $columns)
Method to set a whole range of columns at once This can be used to re-order the columns, too
JGrid
addRow(
array $options = array(),
int $special = false)
Adds a row to the table and sets the currently active row to the new row
JGrid
setRowCell(
string $name,
string $content,
array $option = array(),
bool $replace = true)
Set cell content for a specific column for the currently active row