From d8ad23110c0e2730638c03b06cf4e6e62f3aa9da Mon Sep 17 00:00:00 2001 From: Petr Vizina Date: Thu, 24 May 2018 14:31:19 +0200 Subject: [PATCH] Fixed: Container: Added conrainer class. --- src/Kdyby/Replicator/Container.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Kdyby/Replicator/Container.php b/src/Kdyby/Replicator/Container.php index 1241504..e03c680 100644 --- a/src/Kdyby/Replicator/Container.php +++ b/src/Kdyby/Replicator/Container.php @@ -511,9 +511,12 @@ public static function register($methodName = 'addDynamic') }); } - Nette\Utils\ObjectMixin::setExtensionMethod('Nette\Forms\Container', $methodName, function (Nette\Forms\Container $_this, $name, $factory, $createDefault = 0, $forceDefault = FALSE) { + Nette\Utils\ObjectMixin::setExtensionMethod('Nette\Forms\Container', $methodName, function (Nette\Forms\Container $_this, $name, $factory, $createDefault = 0, $forceDefault = FALSE, $containerClass = NULL) { $control = new Container($factory, $createDefault, $forceDefault); $control->currentGroup = $_this->currentGroup; + if ($containerClass) { + $control->containerClass = $containerClass; + } return $_this[$name] = $control; });