mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
added a large amount of missing documentation
This commit is contained in:
@ -62,6 +62,7 @@ class DataColumn extends Column
|
||||
/**
|
||||
* @var array the HTML attributes for the link tag in the header cell
|
||||
* generated by [[\yii\data\Sort::link]] when sorting is enabled for this column.
|
||||
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
|
||||
*/
|
||||
public $sortLinkOptions = [];
|
||||
/**
|
||||
@ -78,10 +79,14 @@ class DataColumn extends Column
|
||||
* @var array the HTML attributes for the filter input fields. This property is used in combination with
|
||||
* the [[filter]] property. When [[filter]] is not set or is an array, this property will be used to
|
||||
* render the HTML attributes for the generated filter input fields.
|
||||
* See [[\yii\helpers\Html::renderTagAttributes()]] for details on how attributes are being rendered.
|
||||
*/
|
||||
public $filterInputOptions = ['class' => 'form-control', 'id' => null];
|
||||
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function renderHeaderCellContent()
|
||||
{
|
||||
if ($this->header !== null || $this->label === null && $this->attribute === null) {
|
||||
@ -117,6 +122,9 @@ class DataColumn extends Column
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function renderFilterCellContent()
|
||||
{
|
||||
if (is_string($this->filter)) {
|
||||
|
Reference in New Issue
Block a user