Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Свойство | Тип | Описание | |
---|---|---|---|
$context |
Метод | Описание | |
---|---|---|
getIndexPlaceholder ( ) : mixed | ||
init ( ) | ||
render ( ) | ||
setContext ( $context ) |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
prepareButtons ( ) | ||
prepareColumnClass ( ) | ||
prepareIndexPlaceholder ( ) | ||
prepareMaxOption ( ) | ||
prepareMinOption ( ) |
protected initColumns ( ) |
abstract protected internalRender ( ) : mixed | ||
Результат | mixed |
protected isAddButtonPositionHeader ( ) : boolean | ||
Результат | boolean |
protected isAddButtonPositionRow ( ) : boolean | ||
Результат | boolean |
protected prepareJsAttributes ( ) : array | ||
Результат | array |
abstract protected prepareTemplate ( ) : string | ||
Результат | string |
public $addButtonPosition |
public $attributeOptions |
protected TabularInput,unclead\multipleinput|MultipleInput,unclead\multipleinput $context | ||
Результат |
public $removeButtonOptions |
public $rowOptions |