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
How to display user defined column name in yajra datatables #2458
Comments
addColumn? |
can you please elaborate .? |
js script: {data:'rename_title', name:'rename_title'} will this solve your problem? |
|
I assume the attributes here are compatible https://yajrabox.com/docs/laravel-datatables/master/html-builder-column .
works for me. |
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
i am trying to view datatables where i have user defined columns. It is showing the name of table column automatically.
i have a class IncomesourceDatatable and from that class i am rendering to my view
below i have a function getColumns.
protected function getColumns()
{
return [
'title',
'description',
'special_rule',
'amount',
'created_at',
];
}
as i can see it shows the table column name as the column name in view, how can i put a user defined column name for example title as My Ttile
The text was updated successfully, but these errors were encountered: