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