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 ab19404 commit 361e0a4Copy full SHA for 361e0a4
src/Form/AjaxSelect.php
@@ -18,11 +18,14 @@ class AjaxSelect extends \Nette\Forms\Controls\SelectBox implements \Nette\Appli
18
{
19
use TAjaxSelect;
20
21
- public const SIGNAL_NAME = 'load';
+ public const CALLBACK_SIGNAL_NAME = 'load';
22
+ public const ONCHANGE_SIGNAL_NAME = 'onchange';
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