⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Member Since 20 Feb 2019
Offline Last Active Feb 21 2019 07:30 PM

Posts I've Made

In Topic: Is it possible alter render of <th> widths?

20 February 2019 - 05:55 PM

Thanks for this solution sincretec and posting it to github, it works for me with 'datatables' theme. 


A few other things I did that helped:


1. Make the overall table a static width, for example:

	.dataTablesContainer {
		width: 1200px;

2. Apply more CSS to the <th>s and <td>s for example:

width: 160px; 
display: block;    
float: left; 
overflow: hidden;     
white-space: nowrap;   
text-overflow: ellipsis;

3. Grocery Crud also now allows you to change the number of characters displayed in each column. Here is what I used:

$config['grocery_crud_character_limiter'] = 100;

Those things, plus a few more minor CSS edits helped display the data the way I like it.


Thanks again sincretec and especially Johnny Skoumbourdis (and team) for making such an awesome CRUD!