Sha256: f8231f362e48da8d2ca6370a8d4c555b90234495f043bf0363296551b9d3135c

Contents?: true

Size: 574 Bytes

Versions: 62

Compression:

Stored size: 574 Bytes

Contents

module ActiveAdmin
  module Views

    class Popover < ActiveAdmin::Component
      builder_method :popover

      def build(options = {}, &block)
        options           = options.dup
        contents_root_tag = options.delete(:contents_root_tag) || :div
        options[:style]   = "display: none"

        super(options)

        @contents_root = send(contents_root_tag, :class => "popover_contents")
      end

      def add_child(child)
        if @contents_root
          @contents_root << child
        else
          super
        end
      end

    end
  end
end

Version data entries

62 entries across 62 versions & 4 rubygems

Version Path
lalala-4.0.0.dev.74 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.73 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.72 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.71 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.66 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.65 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
activeadmin-0.6.0 lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.64 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.63 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.62 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.61 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.60 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.59 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.58 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.57 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.56 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.50 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
lalala-4.0.0.dev.46 vendor/deps/active_admin/lib/active_admin/views/components/popover.rb
activeadmin-0.5.1 lib/active_admin/views/components/popover.rb
activeadmin-0.5.0 lib/active_admin/views/components/popover.rb