Example #1
0
 protected function getTestForm()
 {
     $form = new \serviform\fields\Form();
     $form->setElement('input1', new \serviform\fields\Input());
     $form->setElement('input2', new \serviform\fields\Input());
     return $form;
 }
Example #2
0
 protected function getField()
 {
     $field = new \serviform\fields\Form();
     $field->config(['elements' => ['child' => ['type' => 'input', 'attributes' => ['class' => 'child']], 'child2' => ['type' => 'input', 'attributes' => ['class' => 'child']]]]);
     return $field;
 }