Method: Fancygrid::Node#attributes

Defined in:
lib/fancygrid/node.rb

#attributes(*names) ⇒ Object

Creates and adds a column for each given parameter. The columns are marked as selectable and searchable.



79
80
81
82
83
84
# File 'lib/fancygrid/node.rb', line 79

def attributes(*names)
  options = names.extract_options!
  options[:searchable] = options.fetch(:searchable, true)
  options[:selectable] = options.fetch(:selectable, true)
  columns(names, options)
end