Skip to content
PHP Ecosystem
Explore

DebugDataColumn

API reference › Debug › widgets › DebugDataColumn

final classyii\debug\widgets\DebugDataColumn
Extendsyii\grid\DataColumn » yii\grid\Column » yii\base\BaseObject
Implementsyii\base\Configurable
Sourcesrc/widgets/DebugDataColumn.php

Applies accessible defaults to debug GridView data columns.

PropertyTypeDescriptionDefined by
$attributestringThe attribute name associated with this column. Default: null.yii\grid\DataColumn
$contentcallableThis is a callable that will be used to generate the content of each cell. Default: null.yii\grid\Column
$contentOptionsarray|ClosureThe HTML attributes for the data cell tag. Default: [].yii\grid\Column
$enableSortingboolWhether to allow sorting by this column. Default: true.yii\grid\DataColumn
$encodeLabelboolWhether the header label should be HTML-encoded. Default: true. Available since 2.0.1.yii\grid\DataColumn
$filterstring|array|null|falseThe HTML code representing a filter input (e.g. a text field, a dropdown list) that is used for this data column. Default: null.yii\grid\DataColumn
$filterAttributestring|nullThe attribute name of the GridView::$filterModel associated with this column. Default: null. Available since 2.0.41.yii\grid\DataColumn
$filterInputOptionsarrayThe HTML attributes for the filter input fields. Default: ['id' => null].yii\grid\DataColumn
$filterOptionsarrayThe HTML attributes for the filter cell tag. Default: [].yii\grid\Column
$footerstringThe footer cell content. Default: null.yii\grid\Column
$footerOptionsarrayThe HTML attributes for the footer cell tag. Default: [].yii\grid\Column
$formatstring|array|ClosureIn which format should the value of each data model be displayed as (e.g. "raw", "text", "html", ['date', 'php:Y-m-d']). Default: 'text'.yii\grid\DataColumn
$gridyii\grid\GridViewThe grid view object that owns this column. Default: null.yii\grid\Column
$headerstring|nullThe header cell content. Default: null.yii\grid\Column
$headerOptionsarrayThe HTML attributes for the header cell tag. Default: [].yii\grid\Column
$labelstring|nullLabel to be displayed in the header cell and also to be used as the sorting link label when sorting is enabled for this column. Default: null.yii\grid\DataColumn
$optionsarrayThe HTML attributes for the column group tag. Default: [].yii\grid\Column
$sortLinkOptionsarrayThe HTML attributes for the link tag in the header cell generated by Sort::link() when sorting is enabled for this column. Default: [].yii\grid\DataColumn
$valuestring|Closure|nullAn anonymous function or a string that is used to determine the value to display in the current column. Default: null.yii\grid\DataColumn
$visibleboolWhether this column is visible. Default: true.yii\grid\Column
MethodDescriptionDefined by
__construct()Constructor.yii\base\BaseObject
__call()Calls the named method which is not a class method.yii\base\BaseObject
__get()Returns the value of an object property.yii\base\BaseObject
__isset()Checks if a property is set, i.e. defined and not null.yii\base\BaseObject
__set()Sets value of an object property.yii\base\BaseObject
__unset()Sets an object property to null.yii\base\BaseObject
canGetProperty()Returns a value indicating whether a property can be read.yii\base\BaseObject
canSetProperty()Returns a value indicating whether a property can be set.yii\base\BaseObject
className() staticReturns the fully qualified name of this class.yii\base\BaseObject
getDataCellValue()Returns the data cell value.yii\grid\DataColumn
hasMethod()Returns a value indicating whether a method is defined.yii\base\BaseObject
hasProperty()Returns a value indicating whether a property is defined.yii\base\BaseObject
init()Marks the header cell as a column scope and gives the filter input an accessible name derived from its header label.DebugDataColumn
renderDataCell()Renders a data cell.yii\grid\Column
renderFilterCell()Renders the filter cell.yii\grid\Column
renderFooterCell()Renders the footer cell.yii\grid\Column
renderHeaderCell()Renders the header cell.yii\grid\Column
getHeaderCellLabel() protectedReturns header cell label.yii\grid\DataColumn
renderDataCellContent() protectedRenders the data cell content.yii\grid\DataColumn
renderFilterCellContent() protectedRenders the filter cell content.yii\grid\DataColumn
renderFooterCellContent() protectedRenders the footer cell content.yii\grid\Column
renderHeaderCellContent() protectedRenders the header cell content.yii\grid\DataColumn
public function init(): void

Marks the header cell as a column scope and gives the filter input an accessible name derived from its header label.