Module: Coco::Concerns::ActsAsFieldWithHtmlOptions
- Extended by:
- ActiveSupport::Concern
- Includes:
- HasName
- Included in:
- Fields::CollectionCheckBoxesComponent, Fields::CollectionRadioButtonsComponent, Fields::CollectionSelectComponent, Fields::DateSelectComponent, Fields::DatetimeSelectComponent, Fields::GroupedCollectionSelectComponent, Fields::SelectComponent, Fields::TimeSelectComponent, Fields::TimeZoneSelectComponent, Fields::WeekdaySelectComponent
- Defined in:
- app/components/coco/concerns/acts_as_field_with_html_options.rb
Instance Method Summary collapse
Methods included from HasName
Instance Method Details
#set_html_options! ⇒ Object
7 8 9 10 11 12 |
# File 'app/components/coco/concerns/acts_as_field_with_html_options.rb', line 7 def @html_options[:data] ||= {} @html_options[:data][:coco] = "✔" @html_options[:data][:component] = "form-#{component_name.delete_prefix("fields-")}" super end |