Sha256: 98526d9243ffc692eb101b33644d1fdc213e67fd53972bb572439a61c816f1f1

Contents?: true

Size: 313 Bytes

Versions: 75

Compression:

Stored size: 313 Bytes

Contents

module Coco
  module Concerns
    module WithDropdown
      extend ActiveSupport::Concern
      include WithDropdownOptions

      included do
        renders_one :dropdown, ->(**kwargs, &block) do
          merge_option_values(:dropdown, kwargs)
          capture(&block)
        end
      end
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
coveragebook_components-0.8.6 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.5 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.4 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.3 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.2 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.1 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.0 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.0.beta.3 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.0.beta.2 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.8.0.beta.1 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.10 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.9 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.8 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.7 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.6 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.5 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.4 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.3 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.2 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.7.1 app/components/coco/concerns/with_dropdown.rb