Exemplo n.º 1
0
 /**
  * @param string $label
  */
 public function __construct($label)
 {
     parent::__construct($label);
     /** @var HtmlElement $element */
     foreach ($this->elements as $i => $element) {
         if ($element->getTag() == '<div>' && $element->hasClass('row')) {
             $this->newContainer = new WidgetElement((new HtmlContainer('<div>'))->addClass('cawa-fields-multiple-group')->add($this->getInputGroup($element)));
             $this->elements[$i] = $this->newContainer;
         }
     }
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function __construct(string $label = null)
 {
     parent::__construct($label);
     $this->tabContainer = new TabContainer();
     $this->container->add($this->tabContainer)->addClass('form-tabs');
 }