Streamline partial usage in form fields and list columns
This commit is contained in:
parent
7beafebf7c
commit
2adeb7de2d
|
|
@ -690,6 +690,9 @@ class Lists extends WidgetBase
|
|||
{
|
||||
return $this->controller->makePartial($column->path ?: $column->columnName, [
|
||||
'listColumn' => $column,
|
||||
'listRecord' => $record,
|
||||
'listValue' => $value,
|
||||
'column' => $column,
|
||||
'record' => $record,
|
||||
'value' => $value
|
||||
]);
|
||||
|
|
|
|||
|
|
@ -1,2 +1,9 @@
|
|||
<!-- Partial -->
|
||||
<?= $this->controller->makePartial($field->path ?: $field->columnName) ?>
|
||||
<?= $this->controller->makePartial($field->path ?: $field->columnName, [
|
||||
'formModel' => $formModel,
|
||||
'formField' => $field,
|
||||
'formValue' => $field->value,
|
||||
'model' => $formModel,
|
||||
'field' => $field,
|
||||
'value' => $field->value
|
||||
]) ?>
|
||||
Loading…
Reference in New Issue