File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 5
5
use Contributte \FormMultiplier \Multiplier ;
6
6
use Nette \Forms \Controls \SubmitButton ;
7
7
use Nette \SmartObject ;
8
+ use Nette \Utils \Html ;
8
9
9
10
final class RemoveButton
10
11
{
@@ -14,12 +15,12 @@ final class RemoveButton
14
15
/** @var callable[] */
15
16
public array $ onCreate = [];
16
17
17
- private ? string $ caption = null ;
18
+ private Html | string | null $ caption = null ;
18
19
19
20
/** @var string[] */
20
21
private array $ classes = [];
21
22
22
- public function __construct (? string $ caption )
23
+ public function __construct (Html | string | null $ caption )
23
24
{
24
25
$ this ->caption = $ caption ;
25
26
}
Original file line number Diff line number Diff line change 13
13
use Nette \Forms \Form ;
14
14
use Nette \Utils \ArrayHash ;
15
15
use Nette \Utils \Arrays ;
16
+ use Nette \Utils \Html ;
16
17
use Traversable ;
17
18
18
19
class Multiplier extends Container
@@ -153,7 +154,7 @@ public function getCopyNumber(): int
153
154
return $ this ->copyNumber ;
154
155
}
155
156
156
- public function addRemoveButton (? string $ caption = null ): RemoveButton
157
+ public function addRemoveButton (Html | string | null $ caption = null ): RemoveButton
157
158
{
158
159
return $ this ->removeButton = new RemoveButton ($ caption );
159
160
}
You can’t perform that action at this time.
0 commit comments