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

[7.0] Error render laravel 5.4 with datatable editColumn :( #967

Closed
sintaxsysdev opened this issue Feb 3, 2017 · 2 comments
Closed

[7.0] Error render laravel 5.4 with datatable editColumn :( #967

sintaxsysdev opened this issue Feb 3, 2017 · 2 comments

Comments

@sintaxsysdev
Copy link

sintaxsysdev commented Feb 3, 2017

Error render laravel 5.4 with datatable editColumn :(

->addColumn('action', function ($location) {
                return '<button type="button" value="' . $location->id . '" onclick="confirmDelete(this);" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>';
            })

->editColumn('location_name', function ($location) { return '<b>a</b>'; })

"data":[{"id":"1","location_name":"&lt;b&gt;a&lt;\/b&gt;","location_description":"","location_status":"1","created_at":"&lt;b&gt;Feb 3, 2017&lt;\/b&gt;","action":"<button type=\"button\" value=\"1\" onclick=\"confirmDelete(this);\" class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\".bs-example-modal-sm\">Small modal<\/button>"},

addColumn is OK

editColumn fail :(

@yajra
Copy link
Owner

yajra commented Feb 3, 2017

Please see #949. Thanks!

@yajra yajra changed the title Error render laravel 5.4 with datatable editColumn :( [7.0] Error render laravel 5.4 with datatable editColumn :( Feb 3, 2017
@sintaxsysdev
Copy link
Author

Thank you ;)

@yajra yajra closed this as completed Feb 4, 2017
@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants