KeyValueGrid
class KeyValueGrid extends Grid (View source)
The KeyValueGrid class.
Constants
ROW_HEAD |
|
ROW_FOOT |
|
ROW_NORMAL |
|
COL_KEY |
|
COL_VALUE |
|
ROW |
|
Methods
Class init.
Method to set the attributes for a table-tag
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 set the attributes of the currently active row
Set cell content for a specific column for the currently active row
addHeader
addItem
addItems
addTitle
configureRows
Details
at line line 39
__construct(array $attribs = array())
Class init.
Grid
setTableAttributes(array $attribs = array(), bool $replace = false)
Method to set the attributes for a table-tag
Grid
setColumns(array $columns)
Method to set a whole range of columns at once This can be used to re-order the columns, too
Grid
addRow(array $attribs = array(), int|bool $special = self::ROW_NORMAL)
Adds a row to the table and sets the currently active row to the new row
array
getRowAttributes()
Method to get the attributes of the currently active row
Grid
setRowAttributes(array $attribs)
Method to set the attributes of the currently active row
Grid
setRowCell(string $name, string $content, array $attribs = array(), bool $replace = true)
Set cell content for a specific column for the currently active row
array
getRows(int|bool $special = false)
Get the IDs of all rows in the table
at line line 55
KeyValueGrid
addHeader(string $keyTitle = 'Key', string $valueTitle = 'Value', array $attribs = array())
addHeader
at line line 73
KeyValueGrid
addItem(string $key, string $value = null, array $attribs = array())
addItem
at line line 99
KeyValueGrid
addItems(string $items = null, array $attribs = array())
addItems
at line line 117
KeyValueGrid
addTitle(string $name, array $attribs = array())
addTitle
at line line 134
KeyValueGrid
configure(array $items, callable $handler)
configureRows