Module: Coco::Concerns::ActsAsFieldWithHtmlOptions
- Extended by:
- ActiveSupport::Concern
- Includes:
- HasName
- Included in:
- App::Fields::CollectionCheckBoxesComponent, App::Fields::CollectionRadioButtonsComponent, App::Fields::CollectionSelectComponent, App::Fields::DateSelectComponent, App::Fields::DatetimeSelectComponent, App::Fields::GroupedCollectionSelectComponent, App::Fields::SelectComponent, App::Fields::TimeSelectComponent, App::Fields::TimeZoneSelectComponent, App::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] = "app-form-#{component_name.delete_prefix("app-")}" super end |