Skip to content
Discussion options

You must be logged in to vote

HI @gvanto

For Tooltip:
Here is an article on adding a tooltip on columns/list operation as it's example:
https://backpackforlaravel.com/articles/tutorials/how-to-make-custom-javascript-work-with-backpack-s-list-operation

To make values shorter:
We can add text-truncate class using wrapper:

CRUD::column('content')->wrapper([
'element' => 'span',
  'class' => 'd-inline-block text-truncate',
  'style' => "max-width: 100px;",
  'data-bs-toggle' => "tooltip",
  'data-bs-placement'=> "top",
]);

I'm sure you want to do it to many columns. To avoid placing the code in every column, we can Add new methods to the CrudColumn class and use it for any column.

//app/Providers/AppServiceProvider.php

p…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gvanto
Comment options

You must be logged in to vote
1 reply
@karandatwani92
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants