Skip to content

Conversation

@andrewbredow
Copy link
Contributor

When generating fields, it should be possible to specify a hash in the
format of label: { text: "A label", class: "a-class" }, as indicated
in the documentation.

This approach assumes that if the developer has specified the label as a
hash, then it trumps label_class in the options hash.

When generating fields, it should be possible to specify a hash in the
format of `label: { text: "A label", class: "a-class" }`, as indicated
in the documentation.

This approach assumes that if the developer has specified the label as a
hash, then it trumps `label_class` in the options hash.
@andrewbredow
Copy link
Contributor Author

I'd love feedback on this - from a high level, the feature is just filling out functionality that's mentioned in the README (and is pretty useful). However, there is some opinion here in what the precedence of multiple options should be. Currently it's (in descending order):

  1. hide_class
  2. label { ... }
  3. label_text and label_class
  4. label_class

@manlycode
Copy link

This is something I could really use. 👍

@trestrantham
Copy link

👍 Is there anything I can do to help this get merged? Lost quite a bit of time debugging this until I found this fix.

@mattslack
Copy link

I could really use this 👍

@laserlemon
Copy link
Contributor

Looks great! 👏 @bootstrap-ruby, seems ready to 🚢. What do you think?

potenza added a commit that referenced this pull request Nov 4, 2015
Allow label options to be passed in as a hash
@potenza potenza merged commit 3955276 into bootstrap-ruby:master Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants