Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeven committed Apr 11, 2015
1 parent 4603a3a commit a9428ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,17 @@ $this->formRow(new \Zend\Form\Element('my-element', array(
)));
```

You can also set the the form-group size by passing the `twb-form-group-size` option on the element passed to formRow, example Twig syntax:

```twig
{% for f in server_form %}
{% do f.setOption( 'twb-form-group-size', 'form-group-sm' ) %}
{{ formRow( f ) }}
{% endfor %}
```



#### Static : `TwbBundle\Form\View\Helper\TwbBundleFormStatic`

Static helper can be called in a view with the view helper service `formStatic(\Zend\Form\ElementInterface $oElement)` :
Expand Down

0 comments on commit a9428ef

Please sign in to comment.