Sha256: 3b4a4877c2e2c3007e4d466d7dda157b1a6039dafccdb9f8fad2e8235a0847eb

Contents?: true

Size: 381 Bytes

Versions: 48

Compression:

Stored size: 381 Bytes

Contents

module Coco
  module Concerns
    module ActsAsFieldWithHtmlOptions
      extend ActiveSupport::Concern
      include Concerns::HasName

      def set_html_options!
        @html_options[:data] ||= {}
        @html_options[:data][:coco] = "✔"
        @html_options[:data][:component] = "app-form-#{component_name.delete_prefix("app-")}"
        super
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.12.1 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.12.0 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.11.0 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.10.1.beta.2 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.10.1.beta.1 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.10.1.beta.0 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.10.0 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.9.1 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.9.0 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.9 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.8 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.7 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.6 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.5 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.4 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.3 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.2 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.1 app/components/coco/concerns/acts_as_field_with_html_options.rb
coveragebook_components-0.8.0 app/components/coco/concerns/acts_as_field_with_html_options.rb