Sha256: 6a8abe39cb153d8e959bc9a4dabda179f40c982bf10cc2672739896dee5e80a9

Contents?: true

Size: 482 Bytes

Versions: 74

Compression:

Stored size: 482 Bytes

Contents

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

      included do
        accepts_option :dropdown,
          alias: "tippy" do |dd|
          dd.accepts_option :placement,
            from: %w[top top-start top-end right right-start right-end bottom bottom-start bottom-end left left-start left-end auto auto-start auto-end],
            default: "bottom-start"
        end
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
coveragebook_components-0.19.9 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.8 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.7 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.6 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.5 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.4 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.3 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.2 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.1 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.19.0 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.18.8 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.18.7 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.18.0 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.17.7 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.17.6 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.17.5 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.17.4 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.17.3 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.17.2 app/components/coco/concerns/with_dropdown_options.rb
coveragebook_components-0.17.1 app/components/coco/concerns/with_dropdown_options.rb