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