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.19.10 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.9 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.8 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.7 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.6 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.5 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.4 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.3 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.2 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.1 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.19.0 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.18.8 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.18.7 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.18.0 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.17.7 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.17.6 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.17.5 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.17.4 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.17.3 app/components/coco/concerns/with_dropdown.rb
coveragebook_components-0.17.2 app/components/coco/concerns/with_dropdown.rb