Sha256: f77b5fc5b94570fb8929ae4f51165f2cdbe037f1cd73637073f218e223a91539

Contents?: true

Size: 1.22 KB

Versions: 1

Compression:

Stored size: 1.22 KB

Contents

= styled_inputs

+styled_inputs+ adds automated styling of input fields with css classes.

== Resources

Wiki

* http://wiki.pluginaweek.org/Styled_inputs

API

* http://api.pluginaweek.org/styled_inputs

Development

* http://dev.pluginaweek.org/browser/trunk/styled_inputs

Source

* http://svn.pluginaweek.org/trunk/styled_inputs

== Description

Normally, it is difficult to style inputs without adding classes to them so
that you can specify css for each type of input.  Since this can become a
tedious manual task, styled_inputs automatically adds a classes to each
input that is generated either by tag or form helpers.  The class that is
specified is the type of input being generated.

== Usage

=== Tags

  text_field_tag('name')    # => <input class="text" id="name" name="name" type="text" />
  hidden_field_tag('name')  # => <input class="hidden" id="name" name="name" type="hidden" />

=== Form helpers

  text_field(:person, :name)    # => <input class="text" id="person_name" name="person[name]" size="30" type="text" />
  hidden_field(:person, :name)  # => <input class="hidden" id="person_name" name="person[name]" type="hidden" />

== Dependencies

* Rails 2.0 or later
* set_or_append[http://wiki.pluginaweek.org/Set_or_append]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
styled_inputs-0.0.3 README