Skip to content

Commit d04e6d2

Browse files
authored
Create AjaxMultiSelect.php
1 parent eaeef3a commit d04e6d2

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/Form/AjaxMultiSelect.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
/**
4+
* This file is part of Nepttune (https://www.peldax.com)
5+
*
6+
* Copyright (c) 2019 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 AjaxMultiSelect extends \Nette\Forms\Controls\MultiSelectBox implements \Nette\Application\UI\ISignalReceiver
18+
{
19+
use TAjaxSelect;
20+
21+
public const SIGNAL_NAME = AjaxSelect::SIGNAL_NAME;
22+
23+
public function __construct(?string $label, callable $callback)
24+
{
25+
$this->callback = $callback;
26+
parent::__construct($label);
27+
}
28+
}

0 commit comments

Comments
 (0)