Method: DataTable::Table#column
- Defined in:
- lib/data-table/table.rb
#column(id, title = '', opts = {}, &b) ⇒ Object
Define a new column for the table
59 60 61 |
# File 'lib/data-table/table.rb', line 59 def column(id, title = '', opts = {}, &b) @columns << DataTable::Column.new(id, title, opts, &b) end |