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) = names. [:searchable] = .fetch(:searchable, true) [:selectable] = .fetch(:selectable, true) columns(names, ) end |