Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use render and javascript in columns #24

Open
vaosveco opened this issue Sep 6, 2019 · 0 comments
Open

use render and javascript in columns #24

vaosveco opened this issue Sep 6, 2019 · 0 comments

Comments

@vaosveco
Copy link

vaosveco commented Sep 6, 2019

Add in DataTableHelper line 166
$readyFunctionContent=str_replace(""funct","funct",$readyFunctionContent);
$readyFunctionContent=str_replace("findunc"","",$readyFunctionContent);
Example:
->column('Cajas.fecha_mod', ['label' => 'Fecha de Modificacion',"render"=>"function ( data, type, row, meta ) { var date = new Date(data); return date.toLocaleString(document.documentElement.lang,{dateStyle:'full',timeStyle:'short'}); }findunc"])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant