Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

Limit the text in column

$
0
0
Hello my name is Rudy and this is my first post.
I need to strip the text into the column with a maximum number of letters up to 350.
I have read that about mRender function but I am a bit stuck about its use.
I work with Datatables in a CakePhp project, my DT is already built under the MVC pattern of cakephp.
I will enclose my script to better clear what I need

<script type="text/javascript">
	$('#admin_index_table').dataTable({
		aoColumns: [
			{ mData: 'Family.id' },
			{ mData: 'Family.name' },
			{ mData: 'Family.description' },
			{ mData: 'Family.created' },
			{ mData: 'Family.enabled' },
			{
				mData: 'Family.id',
				mRender: <?php echo $this->DataTables->renderActions(); ?>,
				bSortable: false,
				bSearchable: false
			}
		]
		
		
	});
</script>

any hint ?

Thanks in advance

Rudy

Viewing all articles
Browse latest Browse all 82115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>