Class: ActiveAdmin::Views::Popover
- Defined in:
- lib/active_admin/views/components/popover.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#add_child(child) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/active_admin/views/components/popover.rb', line 17 def add_child(child) if @contents_root @contents_root << child else super end end |
#build(options = {}, &block) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/active_admin/views/components/popover.rb', line 7 def build( = {}, &block) = .dup contents_root_tag = .delete(:contents_root_tag) || :div [:style] = "display: none" super() @contents_root = send(contents_root_tag, :class => "popover_contents") end |