Beispiel #1
0
 /**
  * Add button to form
  *
  * @param array|Elements\Abstraction\Element $buttons
  * @return Form
  */
 public function addButtonsRow($buttons = [])
 {
     if (!is_array($buttons)) {
         $buttons = [$buttons];
     }
     $row = Row::forge()->addField($buttons);
     return $this->addContent($row);
 }
Beispiel #2
0
 /**
  * Add wield wrapped with row to fieldset
  *
  * @param Elements\Abstraction\Element|array $field
  * @param string $label
  * @param string $hint
  * @return Fieldset
  */
 public function addRowField($field, $label = null, $hint = null)
 {
     return $this->addRow(Row::forge()->addField($field, $label, $hint));
 }