Class: ActiveAdmin::Views::ActionListPopover

Inherits:
Popover
  • Object
show all
Defined in:
lib/active_admin/views/components/action_list_popover.rb

Overview

Build an ActionListPopover

Direct Known Subclasses

BatchActions::BatchActionPopover

Instance Method Summary (collapse)

Methods inherited from Popover

#add_child

Instance Method Details

- (Object) action(title, url, *args)



18
19
20
21
22
23
24
25
# File 'lib/active_admin/views/components/action_list_popover.rb', line 18

def action(title, url, *args)
  options = args.extract_options!
  within @contents do
    li do
      text_node link_to( title, url, options )
    end
  end
end

- (Object) build(*args, &block)



10
11
12
13
14
15
16
# File 'lib/active_admin/views/components/action_list_popover.rb', line 10

def build(*args, &block)
  @contents = ul class: "popover_contents"

  options = args.extract_options!

  super(options)
end