Method: SimpleForm::Components::Labels#label_html_options
- Defined in:
- lib/simple_form/components/labels.rb
#label_html_options ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/simple_form/components/labels.rb', line 48 def label_html_classes = SimpleForm.additional_classes_for(:label) { [input_type, required_class, disabled_class, SimpleForm.label_class].compact } = (:label, label_html_classes) if .key?(:input_html) && [:input_html].key?(:id) [:for] = [:input_html][:id] end end |