Open remicollet opened 7 years ago
For now, I'm using something like:
class ExtenfionForm extends Form { private $childIndex; private $childControl; public function addChild(string $name, string $label, UI\Control $control, boolean $stretchy=NULL) { $this->childIndex[$name] = $this->append($label, $control, $stretchy ?? false); $this->childControl[$name] = $control; } public function getChild(string $name) { return ($this->childControl[$name] ?? NULL); } }
Perhaps we need something simpler.
This is possible without any additional upstream change, we could do this.
For now, I'm using something like:
Perhaps we need something simpler.