Class QAbstractHtmlTableColumn
Represents a column for a QHtmlTable. Different subclasses (see below) allow accessing and fetching the data for each cells in a variety of ways
- QBaseClass
- QAbstractHtmlTableColumn
Direct known subclasses
QAbstractHtmlTableDataColumnIndirect known subclasses
ComplexColumn, ExampleCheckColumn1, QVirtualAttributeColumn, ExampleCheckColumn2, QDataGrid_CheckBoxColumn, QHtmlTableCallableColumn, QHtmlTableCheckBoxColumn, QHtmlTableIndexedColumn, QHtmlTableLinkColumn, QHtmlTableNodeColumn, QHtmlTablePropertyColumn
public
|
|||
public
|
|||
public
|
#
FetchHeaderCellValue( )
Returns the text to print in the header cell, if one is to be drawn. Override if you want something other than the default. |
||
public
array
|
#
GetHeaderCellParams( )
Returns an array of key/value pairs to insert as parameters in the header cell. Override and add more if you need them. |
||
public
string
|
#
RenderCell( mixed $item, boolean $blnAsHeader = false )
Render a cell. Called by data table for each cell. Override and call with $blnHeader = true if you want this individual cell to render with < > tags instead of < | >.
| |
protected
array
|
#
GetCellParams( mixed $item )
Return a key/val array of items to insert inside the cell tag. Handles class, style, and id already. Override to add additional items, like an onclick handler. |
||
protected
string
|
|||
protected
string
|
|||
protected
string
|
|||
abstract public
|
|||
public
string
|
#
RenderColTag( )
Render the column tag. This special tag can control specific features of columns, but is generally optional on a table. |
||
protected
|
#
GetColParams( )
Return a key/value array of parameters to put in the col tag. Override to add parameters. |
||
public
|
|||
public
|
|||
public
|
|||
public
boolean|integer|mixed|
|
|||
public
mixed|
|
OverrideAttributes(),
__call()
|
protected
string
|
$strName
|
|
protected
string
|
$strCssClass
|
#
null
|
protected
string
|
$strHeaderCssClass
|
#
null
|
protected
boolean
|
$blnHtmlEntities
|
#
true
|
protected
boolean
|
$blnRenderAsHeader
|
#
false
|
protected
|
$objParentTable
|
#
null
|
protected
integer
|
$intSpan
|
#
1
|
protected
string
|
$strId
optional id for column tag rendering and datatables |
#
null
|
protected
boolean
|
$blnVisible
Easy way to hide a column without removing the column. |
#
true
|
protected
Callable
|
$cellParamsCallback
Callback to modify the html attributes of the generated cell. |
#
null
|
protected
|
$objCellStyler
Styles for each cell. Usually this should be done in css for efficient code generation. |
|
protected
|
$objHeaderCellStyler
Styles for each header cell. Usually this should be done in css for efficient code generation. |
|
protected
|
$objColStyler
Styles for each col. Usually this should be done in css for efficient code generation. |
public
string
|
$Name
name of the column |
||
public
string
|
$CssClass
CSS class of the column. This will be applied to every cell in the column. Use ColStyper to set the class for the actual 'col' tag if using col tags. |
||
public
string
|
$HeaderCssClass
CSS class of the column's cells when it's rendered in a table header |
||
public
boolean
|
$HtmlEntities
if true, cell values will be converted using htmlentities() |
||
public
boolean
|
$RenderAsHeader
if true, all cells in the column will be rendered with a < > tag instead of < | >
|
|
public
integer
|
$Id
HTML id attribute to put in the col tag |
||
public
integer
|
$Span
HTML span attribute to put in the col tag |
||
public
boolean
|
$Visible
Whether the column will be drawn. Defaults to true. |
||
public read-only
|
$ParentTable
parent table of the column |
||
public read-only
|
$CellStyler
The tag styler for the cells in the column |
||
public read-only
|
$HeaderCellStyler
The tag styler for the header cells in the column |
||
public read-only
|
$ColStyler
The tag styler for the col tag in the column |
||
public write-only
|
$_ParentTable
Parent table of this column |
||
public write-only
callable
|
$CellParamsCallback
A callback to set the html parameters of a generated cell |