Closed mbialasek closed 10 years ago
You can add classes to various parts of the table. See options here: https://github.com/tigrang/cakephp-datatable/blob/master/View/Helper/DataTableHelper.php#L140
You can also style it with javascript options for datatables, you can see their documentation for that.
Yeah works fine, Thank you very much for your help and for great plugin
I use <?php echo $this->DataTable->render(); ?> in my index.ctp view file, and:
<?php
foreach($dtResults as $result) { debug($result); $this->dtResponse['aaData'][] = array( $result['Type']['id'], $result['Type']['name'], $this->Html->link((''), array('action' => 'edit', $result['Type']['id']), array('class' => 'button tiny icon-pencil', 'title' => (''))), ); }
in datatable/index.ctp
it works and generate table, but i have a quastion, how to add style to them, how to add class to this table. Now I have default cake table view, which look not preety, screenshot: http://postimg.org/image/ozxxarg9j/