feat: Получение списка свойст компонента
This commit is contained in:
parent
2aa77efd94
commit
2f8c788664
1 changed files with 7 additions and 0 deletions
|
|
@ -232,6 +232,13 @@ class Component
|
|||
$view->component_title = $settings['title'];
|
||||
}
|
||||
|
||||
public function getFields($options = null) {
|
||||
$form = new Form();
|
||||
$form->addFieldList($this->getInfo()['parameter'], $options);
|
||||
|
||||
return $form->field;
|
||||
}
|
||||
|
||||
/**
|
||||
* Обьеденить с ComponentFactory
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue