Structures_DataGrid_Renderer_HTMLTable

Structures_DataGrid_Renderer_HTMLTable

Structures_DataGrid_Renderer_HTMLTable -- HTML Table Rendering Driver

Description

Driver for rendering the DataGrid as an HTMLTable

Options

This driver accepts the following options:

Table 55-1. Options for this driver

OptionTypeDescriptionDefault Value
buildFooterboolWhether to build the footer.true
buildHeaderboolWhether to build the header.true
columnAttributesarrayColumn cells attributes. This is an array of the form: array(fieldName => array(attribute => value, ...) ...)array()
convertEntitiesboolWhether or not to convert html entities. This calls htmlspecialchars().true
defaultCellValuestringWhat value to put by default into empty cells.null
defaultColumnValuesarrayPer-column default cell value. This is an array of the form: array(fieldName => value, ...).array()
emptyRowAttributesarrayAn associative array containing the attributes for empty rows.array()
encodingstringThe content encoding. If the mbstring extension is present the default value is set from mb_internal_encoding(), otherwise it is ISO-8859-1. 
evenRowAttributesarrayAn associative array containing each attribute of the even rows.array()
excludeVarsarrayVariables to be removed from the generated HTTP queries.array()
extraVarsarrayVariables to be added to the generated HTTP queries.array()
fillWithEmptyRowsboolEnsures that all pages have the same number of rows.false
headerAttributesarrayAttributes for the header row. This is an array of the form: array(attribute => value, ...)array()
hideColumnLinksarrayBy default sorting links are enabled on all columns. With this option it is possible to disable sorting links on specific columns. This is an array of the form: array(fieldName, ...). This option only affects drivers that support sorting.array()
numberAlignboolWhether to right-align numeric values.true
oddRowAttributesarrayAn associative array containing each attribute of the odd rows.array()
selfPathstringThe complete path for sorting and paging links.$_SERVER['PHP_SELF']
sortIconASCstringThe icon to define that sorting is currently ascending. Can be text or HTML to define an image.''
sortIconDESCstringThe icon to define that sorting is currently descending. Can be text or HTML to define an image.''
sortingResetsPagingboolWhether sorting HTTP queries reset paging.true