-
Notifications
You must be signed in to change notification settings - Fork 34
classes_lib_controls_table_tbody.class
This is tbody in div annotation.
Namespace: ScavixWDF\Controls\Table
Extends: Control » Renderable
SHORTCUT To get a cell from the current row (Tr::GetCell)
Returns all cells contents as array. Note that this will return a two-dimensional array as it loops thru all rows and for each thru all it's cells.
Definition: public function GetCellContentArray()
Returns: array
Contents of all cells
Return the current row, if any.
Definition: public function GetCurrentRow()
Returns: Tr The last added row object or false
Returns the maximum cell count. Loops thru all rows and finds the maximum count of cells in a row.
Definition: public function GetMaxCellCount()
Returns: int
Maximum cell count
Creates a header. We treat tbody headers as the first row in the tbody element.
Definition: public function Header()
Returns: Tr The created header
SHORTCUT To create a new cell in the current row (Tr::NewCell)
Creates a new row.
Definition: public function NewRow($data=false, $options=false)
Returns: Tr
Parameters:
-
array $data
If given creates new cells in the row (see Tr::NewCell) -
array $options
See Tr for options
Returns all rows.
Definition: public function Rows()
Returns: array
List of Tr objects
Sets the alignment for all rows.
Definition: public function SetAlignment($alignment)
Returns: static
Parameters:
-
array $alignment
Array of alignments for each column l(eft)|r(ight)|c(enter)
OVERRIDE Control::WdfRender
Constructs a new TBody. Possible options:
- 'collapsible' := true|false
- 'visible' := true|false
Definition: public function __construct($options, $class, $parent_table=false)
Returns: NOT DOCUMENTED
Parameters:
-
array $options
Options -
string $class
Classname -
Table $parent_table
The parent table this belongs to