You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yii2 not have a native view for update and create. Also is not have a native reader for tabular input.
Typically usage - a main model and list of related models in one page of crud.
This is a regular usage. Each time needed I can't see a in-box solution.
What is the expected result?
in-box ActiveForm (widget like gridview? closure? gii generator?) for tabular input without foreach in main view and index-named field
Like this:
$form = TabularActiveForm::begin(['models' => $settings]);
foreach ($form->modelsas$index => $model) {
//template of table/listecho$form->renderItem($index, $viewFile);
//template of table/list
}
echo$form->renderTemplateForNewItem();//new row with JS add any new rows and mark it//template of table/listTabularActiveForm::end();
What steps will reproduce the problem?
Yii2 have a
Model::validateMultiple()
and guide for input multiple model and for guide-input-tabular-inputSo... About tabular input:
Yii2 not have a native view for
update
andcreate
. Also is not have a native reader for tabular input.Typically usage - a main model and list of related models in one page of crud.
This is a regular usage. Each time needed I can't see a in-box solution.
What is the expected result?
in-box ActiveForm (widget like gridview? closure? gii generator?) for tabular input without foreach in main view and index-named field
Like this:
What do you get instead?
out-of-box like this guide
and this example
Third part widgets
Is better solution - third part widgets. As solution. For search.
single property and model table input (my choice)
unclead/yii2-multiple-input
another, so biggest
kartik-v/yii2-builder
Additional info
The text was updated successfully, but these errors were encountered: