Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Jan 21, 2016
1 parent 3633fcf commit 94b48e4
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 @@ -141,6 +141,17 @@ SemanticForm::submit($value);
SemanticForm::bind($model);
```

### General Function
For every form element, you can call and chaining following methods:
* id($string)
* addClass($string)
* removeClass($string)
* attribute($name, $value)
* data($name, $value)
``` php
SemanticForm::text($name, $value)->label('Username')->id('username')->addClass('foo');
SemanticForm::text($name, $value)->label('Username')->data('url', 'http://id-laravel.com');
```

## Credits
SemanticForm built on top of awesome form builder by AdamWathan\Form.

0 comments on commit 94b48e4

Please sign in to comment.