bgultekin / laravel4-datatables-package

Server-side handler of DataTables Jquery Plugin for Laravel 4
267 stars 108 forks source link

Add row functions to add DT_RowClass, DT_RowID, DT_RowData #131

Closed nesl247 closed 10 years ago

nesl247 commented 10 years ago

Please add functions that allow us to add DT_RowClass, DT_RowID, and DT_RowData as seen: https://datatables.net/examples/server_side/ids.html

aestock commented 10 years ago

I second this request.

ktunkiewicz commented 10 years ago

Good idea, added two functions:

set_row_class(content)
set_row_data(name, content)

both functions use blade templates so it can be used like this:

->set_row_class('@if(!$isRegistered) warning @endif')
->set_row_data('email','{{$email}}')