Skip to content

How to use datatables in right way? #200

@lukasz-yasecure

Description

@lukasz-yasecure

Hey.
I couldn't find instruction how to use datatables in this bundle so I did below stuff.
I know how to override template so I can copy Partials_scripts.html.twig and add there required JS and CSS:

<!-- datatables -->
<script src="{{ asset('theme/plugins/datatables/dataTables.bootstrap.min.js') }}"></script>
<script src="{{ asset('theme/plugins/datatables/jquery.dataTables.min.js') }}"></script>
<link rel="stylesheet" type="text/css" href="{{ asset('theme/plugins/datatables/jquery.dataTables.min.css') }}" />

The problem is it doesn't work. I see no above files in source.
Any advice? For this moment I will add datatables more manually but I will do that in proper way later.

Thanks

Lukasz

Debug info

Component Version
Symfony version 3.3.10
AdminThemeBundle 1.3.5/dev-master/specific-commit/tag

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions