Skip to content

Commit

Permalink
minor doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed May 23, 2012
1 parent 161dc17 commit 07a83f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/HTML/FormHandler/Field.pm
Expand Up @@ -192,6 +192,9 @@ arbitrary HTML attributes on a field's input tag.
has_field 'foo' => ( element_attr => { readonly => 1, my_attr => 'abc' } );
Note that the 'id' and 'type' attributes are not set using element_attr. Use
the field's 'id' attribute (or 'build_id_method') to set the id.
The 'label_attr' hashref is for label attributes, and the 'wrapper_attr'
is for attributes on the wrapping element (a 'div' for the standard 'simple'
wrapper).
Expand Down
4 changes: 3 additions & 1 deletion lib/HTML/FormHandler/Manual/Rendering.pod
Expand Up @@ -252,7 +252,9 @@ Flag that indicates whether or not a label should be rendered.

=item element_attr

Hashref of arbitrary HTML attributes to include in the element.
Hashref of arbitrary HTML attributes to include in the element. Note that
this does not include the 'id' and 'type' attributes, which are handled
separately. The 'id' can be changed with the field's 'id' attribute.

=item element_class

Expand Down

0 comments on commit 07a83f4

Please sign in to comment.