Property | Type | Description | |
---|---|---|---|
$addButtonOptions | the HTML options for the add button | ||
$addButtonPosition | position of add button. By default button is rendered in the row. | ||
$allowEmptyList | whether to allow the empty list | ||
$attributeOptions | client-side attribute options, e.g. enableAjaxValidation. You may use this property in case when you use widget without a model, since in this case widget is not able to detect client-side options automatically. | ||
$columnClass | string | ||
$columns | array of columns | ||
$data | input data | ||
$form | the instance of ActiveForm class. | ||
$id | the ID of the widget | ||
$max | maximum number of rows | ||
$min | minimum number of rows. | ||
$removeButtonOptions | the HTML options for the remove button | ||
$rowOptions | the HTML attributes for the table body rows. This can be either an array specifying the common HTML attributes for all body rows, or an anonymous function that returns an array of the HTML attributes. It should have the following signature: php function ($model, $index, $context) - $model: the current data model being rendered - $index: the zero-based index of the data model in the model array - $context: the widget object |
Property | Type | Description | |
---|---|---|---|
$context |
Method | Description | |
---|---|---|
getIndexPlaceholder ( ) : mixed | ||
init ( ) | ||
render ( ) | ||
setContext ( $context ) |
Method | Description | |
---|---|---|
initColumns ( ) | Creates column objects and initializes them. | |
internalRender ( ) : mixed | ||
isAddButtonPositionFooter ( ) : boolean | ||
isAddButtonPositionHeader ( ) : boolean | ||
isAddButtonPositionRow ( ) : boolean | ||
prepareJsAttributes ( ) : array | Prepares attributes options for client side. | |
prepareTemplate ( ) : string | ||
registerAssets ( ) | Register script. |
Method | Description | |
---|---|---|
prepareButtons ( ) | ||
prepareColumnClass ( ) | ||
prepareIndexPlaceholder ( ) | ||
prepareMaxOption ( ) | ||
prepareMinOption ( ) |
protected initColumns ( ) |
abstract protected internalRender ( ) : mixed | ||
return | mixed |
protected isAddButtonPositionHeader ( ) : boolean | ||
return | boolean |
protected isAddButtonPositionRow ( ) : boolean | ||
return | boolean |
protected prepareJsAttributes ( ) : array | ||
return | array |
abstract protected prepareTemplate ( ) : string | ||
return | string |
public $addButtonPosition |
public $attributeOptions |
protected TabularInput,unclead\multipleinput|MultipleInput,unclead\multipleinput $context | ||
return |
public $removeButtonOptions |
public $rowOptions |