grid\CheckboxColumn renderHeaderCellContent()

renderHeaderCellContent() protected method Renders the header cell content. The default implementation simply renders $header. This method may be overridden to customize the rendering of the header cell. protected string renderHeaderCellContent ( )return string The rendering result

grid\CheckboxColumn renderDataCellContent()

renderDataCellContent() protected method Renders the data cell content. protected string renderDataCellContent ( $model, $key, $index )$model mixed The data model $key mixed The key associated with the data model $index integer The zero-based index of the data model among the models array returned by yii\grid\GridView::$dataProvider. return string The rendering result

grid\CheckboxColumn registerClientScript()

registerClientScript() public method (available since version 2.0.8) Registers the needed JavaScript public void registerClientScript ( )

grid\CheckboxColumn init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )throws yii\base\InvalidConfigException if $name is not set.

grid\CheckboxColumn getHeaderCheckBoxName()

getHeaderCheckBoxName() protected method (available since version 2.0.8) Returns header checkbox name protected string getHeaderCheckBoxName ( )return string Header checkbox name

grid\CheckboxColumn $name

$name public property The name of the input checkbox input fields. This will be appended with [] to ensure it is an array. public string $name = 'selection'

grid\CheckboxColumn $multiple

$multiple public property Whether it is possible to select multiple rows. Defaults to true. public boolean $multiple = true

grid\CheckboxColumn $cssClass

$cssClass public property (available since version 2.0.9) The css class that will be used to find the checkboxes. public string $cssClass = null

grid\CheckboxColumn $checkboxOptions

$checkboxOptions public property The HTML attributes for checkboxes. This can either be an array of attributes or an anonymous function (Closure) that returns such an array. The signature of the function should be the following: function ($model, $key, $index, $column). Where $model, $key, and $index refer to the model, key and index of the row currently being rendered and $column is a reference to the yii\grid\CheckboxColumn object. A function may be used to assign different attributes to

grid\ActionColumn renderDataCellContent()

renderDataCellContent() protected method Renders the data cell content. protected string renderDataCellContent ( $model, $key, $index )$model mixed The data model $key mixed The key associated with the data model $index integer The zero-based index of the data model among the models array returned by yii\grid\GridView::$dataProvider. return string The rendering result