Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Where datatables get initialized ? need to add some properties

edited July 2017 in Modules
I want to add datatables properties like
buttons: [
{extend: 'copy',className: 'btn-sm'},
{extend: 'csv',title: 'ExampleFile', className: 'btn-sm'},
{extend: 'pdf', title: 'ExampleFile', className: 'btn-sm'},
{extend: 'print',className: 'btn-sm'}
]
But couldn't find it. Any guide on, how to add this ?

Comments

  • edited 12:53PM
    There's a property on the module called "table_actions" which have the default value of
    array('EDIT', 'VIEW', 'DELETE')
    You can use a key/value for the array as well to specify the URL (key) and the label (value). The EDIT, VIEW and DELETE are just shortcuts the FUEL translates them to the proper URLs.
Sign In or Register to comment.