Streamline partial usage in form fields and list columns

This commit is contained in:
Sam Georges 2014-08-23 11:11:49 +10:00
parent 7beafebf7c
commit 2adeb7de2d
2 changed files with 11 additions and 1 deletions

View File

@ -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
]);

View File

@ -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
]) ?>