afficher discret de controles
This commit is contained in:
parent
6817a7c0b0
commit
bac0e38592
@ -717,6 +717,24 @@ class Form extends ComponentPrintable implements IParametrable, ArrayAccess, Cou
|
|||||||
vo::write($this->controls);
|
vo::write($this->controls);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function printControl(string $key): void {
|
||||||
|
$params = $this->_prepareControls();
|
||||||
|
if ($key == "") {
|
||||||
|
# submit
|
||||||
|
vo::write($this->submit(null, $this->ppSubmit));
|
||||||
|
} elseif (A::has($this->ppSubmits, $key)) {
|
||||||
|
$submit = $this->ppSubmits[$key];
|
||||||
|
A::replace_n($submit, "id", $key);
|
||||||
|
vo::write($this->submit(null, $submit));
|
||||||
|
} else {
|
||||||
|
$param = A::get($params, $key);
|
||||||
|
if ($param !== null) {
|
||||||
|
[$control, $name] = $this->buildControl($param);
|
||||||
|
vo::write($control);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected function fixControlParams(?array &$params): void {
|
protected function fixControlParams(?array &$params): void {
|
||||||
}
|
}
|
||||||
protected function fixControl(Control $control): Control {
|
protected function fixControl(Control $control): Control {
|
||||||
|
Loading…
Reference in New Issue
Block a user