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 ecd5cc9 commit eaeef3aCopy full SHA for eaeef3a
src/Form/AjaxSelect.php
@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+/**
4
+ * This file is part of Nepttune (https://www.peldax.com)
5
+ *
6
+ * Copyright (c) 2018 Václav Pelíšek (info@peldax.com)
7
8
+ * This software consists of voluntary contributions made by many individuals
9
+ * and is licensed under the MIT license. For more information, see
10
+ * <https://www.peldax.com>.
11
+ */
12
13
+declare(strict_types=1);
14
15
+namespace Nepttune\Form;
16
17
+class AjaxSelect extends \Nette\Forms\Controls\SelectBox implements \Nette\Application\UI\ISignalReceiver
18
+{
19
+ use TAjaxSelect;
20
21
+ public const SIGNAL_NAME = 'load';
22
23
+ public function __construct(?string $label, callable $callback)
24
+ {
25
+ $this->callback = $callback;
26
+ parent::__construct($label);
27
+ }
28
+}
0 commit comments