Module: Adminterface::Extensions::Views::Components::DropdownMenu

Defined in:
lib/adminterface/extensions/views/components/dropdown_menu.rb

Instance Method Summary collapse

Instance Method Details

#item_dividerObject



6
7
8
9
10
# File 'lib/adminterface/extensions/views/components/dropdown_menu.rb', line 6

def item_divider
  within @menu do
    li class: "dropdown-divider"
  end
end

#item_htmlObject



12
13
14
15
16
# File 'lib/adminterface/extensions/views/components/dropdown_menu.rb', line 12

def item_html
  within @menu do
    li { yield }
  end
end


18
19
20
21
22
# File 'lib/adminterface/extensions/views/components/dropdown_menu.rb', line 18

def link_to(*args, &block)
  options = args.extract_options!
  options[:class] = "dropdown-item #{options[:class]}".squish
  super(*args, options, &block)
end