Method: Datagrid::Helper#datagrid_table
- Defined in:
- lib/datagrid/helper.rb
#datagrid_table(grid, assets = grid.assets, **options) ⇒ String
Renders html table with columns defined in grid class. In the most common used you need to pass paginated collection to datagrid table because datagrid do not have pagination compatibilities:
283 284 285 286 287 288 289 290 291 292 |
# File 'lib/datagrid/helper.rb', line 283 def datagrid_table(grid, assets = grid.assets, **) _render_partial( "table", [:partials], { grid: grid, options: , assets: assets, }, ) end |