Skip to content

Add label_html option to allow setting html attributes on the generated label#66

Open
thechrisoshow wants to merge 1 commit into
stouset:masterfrom
thechrisoshow:master
Open

Add label_html option to allow setting html attributes on the generated label#66
thechrisoshow wants to merge 1 commit into
stouset:masterfrom
thechrisoshow:master

Conversation

@thechrisoshow

Copy link
Copy Markdown

This lets you set specific html values for the label.

e.g.
= f.text_field :address_line1, 'Address line 1', label_html: { class:
"required" }

This adds the 'required' class to the generated label

This lets you set specific html values for the label.

e.g.
= f.text_field :address_line1, 'Address line 1', label_html: { class:
"required" }

This adds the 'required' class to the generated label
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.

1 participant