Module: Adminterface::Extensions::Views::IndexTableFor

Defined in:
lib/adminterface/extensions/views/index_as_table.rb

Instance Method Summary collapse

Instance Method Details

#default_css_classesObject



17
18
19
# File 'lib/adminterface/extensions/views/index_as_table.rb', line 17

def default_css_classes
  "#{super} #{index_as_table_css_classes[:table]}".squish
end


21
22
23
24
# File 'lib/adminterface/extensions/views/index_as_table.rb', line 21

def dropdown_menu(*args, &block)
  options = args.extract_options!
  super(*args, options.merge(button: {class: index_as_table_css_classes.dig(:actions, :dropdown, :toggle)}), &block)
end