Sha256: d27d4eb0ac064c9138e3b2b6bd583c3c6688817acc5f074098095a478b99e5da
Contents?: true
Size: 605 Bytes
Versions: 12
Compression:
Stored size: 605 Bytes
Contents
require 'active_admin/views/components/popover' module ActiveAdmin module Views # Build an ActionListPopover class ActionListPopover < ActiveAdmin::Views::Popover builder_method :action_list_popover def build(*args, &block) @contents = ul :class => "popover_contents" options = args.extract_options! super(options) end def action(title, url, *args) options = args.extract_options! within @contents do li do text_node link_to( title, url, options ) end end end end end end
Version data entries
12 entries across 12 versions & 3 rubygems