mercredi 5 septembre 2018

Yajra Datatables editing td tags?

I had a slow page and managed to get this->https://yajrabox.com/docs/laravel-datatables/master working on the server side.

Now, my problem is that I have custom styles that need to be implemented for my TD's.

<tr>
  <td style="text-align: left; white-space: nowrap;"><p class="truncateMe"></p></td>
  <?php
  $cats_ar = explode(',', $cat->to);
  $sep = '';
  ?>
  <td style="text-align: left; white-space: nowrap;"><p class="truncateMe"><?php foreach ($cats_ar as $cat_text) { echo $sep . htmlentities($cat_text); $sep = '<br>'; } ?></p></td>
  <td>
    @if (!empty($cat->cc))
    <a data-toggle="tooltip" style="cursor:hand;cursor:pointer;" title="">Cc</a>
    @endif
  </td>
  <td style="text-align: left;"></td>
  <td> <a __data-toggle__="tooltip" style="cursor:hand;cursor:pointer;" title="">Subject</a></td>
  <td style="text-align: center; white-space: nowrap;"><p></p></td>
</tr>

How do I do this using Yajra Laravel Datatables) It looks like this stuff goes in the controller, but I don't understand how you customize each td or if that is even possible?

I have a very basic setup like this,

https://datatables.yajrabox.com/eloquent/basic-columns



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire