We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a85d077 commit ab19404Copy full SHA for ab19404
src/Form/AjaxMultiSelect.php
@@ -18,11 +18,14 @@ class AjaxMultiSelect extends \Nette\Forms\Controls\MultiSelectBox implements \N
18
{
19
use TAjaxSelect;
20
21
- public const SIGNAL_NAME = AjaxSelect::SIGNAL_NAME;
+ public const CALLBACK_SIGNAL_NAME = AjaxSelect::CALLBACK_SIGNAL_NAME;
22
+ public const ONCHANGE_SIGNAL_NAME = AjaxSelect::ONCHANGE_SIGNAL_NAME;
23
- public function __construct(?string $label, callable $callback)
24
+ public function __construct(?string $label, callable $callback, callable $onchange = null)
25
26
$this->callback = $callback;
27
+ $this->onchange = $onchange;
28
+
29
parent::__construct($label);
30
}
31
0 commit comments