Coder Social home page Coder Social logo

styled_inputs's Introduction

styled_inputs

styled_inputs adds automated styling of input fields with css classes.

Resources

API

Bugs

Development

Testing

Source

  • git://github.com/pluginaweek/styled_inputs.git

Mailing List

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" />

Testing

Before you can run any tests, the following gem must be installed:

To run against a specific version of Rails:

rake test RAILS_FRAMEWORK_ROOT=/path/to/rails

Dependencies

  • Rails 2.0 or later

styled_inputs's People

Contributors

obrie avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

satynos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.