Property |
Type |
Description |
|
$addButtonOptions |
|
the HTML options for the add button |
|
$addButtonPosition |
|
position of add button. |
|
$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 |
|
the name of column class. You can specify your own class to extend base functionality.
Defaults to unclead\multipleinput\TabularColumn |
|
$columns |
array |
|
|
$form |
|
an instance of ActiveForm which you have to pass in case of using client validation |
|
$max |
|
maximum number of rows |
|
$min |
|
minimum number of rows |
|
$models |
yii\base\Model[] | yii\db\ActiveRecordInterface[] |
|
|
$removeButtonOptions |
|
the HTML options for the remove button |
|
$rendererClass |
|
the name of renderer class. Defaults to unclead\multipleinput\renderers\TableRenderer. |
|
$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 TabularInput widget object |
|