GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
In one of our projects we needed a way to create input groups (prepend and append stuff to our fields) to give our inputs more context. Instead of repeating myself over and over again I created a new Formtastic Input called IconishSegmentsInput.
I documented the code, added specs, basic CSS styles and examples.
Please take a look at the code and feel free to ask questions, modify and use the code.
Keep up the good work!
With kind regards,
added IconishSegmentsInput support: use :as => :iconish_segments to c…
…reate input groups
Input groups provide an easy way to give more context to your inputs.
added IconishSegmentsInput spec
added basic styling for IconishSegmentsInput and added two examples t…
Hi, this looks interesting! I'm not going to merge it in as-is, but would like to keep talking about it if you have time!
Anyway, interested in your thoughts on #1 mostly to start with.
Thank you for your time, interest and feedback!
I think you're right. I'll extract my code in a new module, suggestions (naming, etc.) are always welcome!
Sounds good! I would like to know more about your idea. What do you think about renaming the options :input_prepend and :input_append into :input_prefix and :input_suffix?
I'll remove border-radius and border-color.
Closing due to lack of activity.