Class: ActiveAdmin::Views::ActionListPopover
- Inherits:
-
Popover
show all
- Defined in:
- lib/active_admin/views/components/action_list_popover.rb
Overview
Build an ActionListPopover
Instance Method Summary
collapse
Methods inherited from Popover
#add_child
Instance Method Details
#action(title, url, *args) ⇒ Object
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.
within @contents do
li do
text_node link_to( title, url, options )
end
end
end
|
#build(*args, &block) ⇒ Object
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.
super(options)
end
|