Laravel-datatables: Make Table responsive

Created on 13 Aug 2015  ·  3Comments  ·  Source: yajra/laravel-datatables

This package works just great!,

Although when you view it in a cellphone the table is not quite proporcional. is it possible to make it responsable, so it can be adapted to any screen?

Thanks

Most helpful comment

@lmatab, try using this plugin https://datatables.net/extensions/responsive/. On my case, what I use is just the bootstrap table-responsive css class.

<div class="table-responsive">
  <table class="table">
    ...
  </table>
</div>

All 3 comments

@lmatab, try using this plugin https://datatables.net/extensions/responsive/. On my case, what I use is just the bootstrap table-responsive css class.

<div class="table-responsive">
  <table class="table">
    ...
  </table>
</div>

How to enable responsive via Service (via php)?

@yajra

On server-side, just set the parameters 'responsive' => true.

Was this page helpful?
0 / 5 - 0 ratings