Sha256: 8c9592fcaebdacde978c4bf797198ad8cc5c9587c5b560189aad8d773e6bdbf0
Contents?: true
Size: 571 Bytes
Versions: 19
Compression:
Stored size: 571 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
19 entries across 19 versions & 4 rubygems