Closed dmarcos89 closed 6 years ago
"Not working" is somewhat too generic.
Any chance there are any logs (from the browser console or laravel logs or web server logs)?
Receiving nothing, no console logs nor laravel logs...
Started using cdn links instead of /vendor ones and works. https://stackoverflow.com/questions/40361437/datatable-fixed-header-not-working
I don't usually reopen issues however I think you're saying that:
vendor
(somewhere); andWhich sounds like a bug to me.
Am I right?
Yes, updating this:
<link href="{{ asset('vendor/adminlte/plugins/datatables/extensions/FixedHeader/css/dataTables.fixedHeader.min.css') }}" rel="stylesheet" type="text/css" />
<script src="{{ asset('vendor/adminlte/plugins/datatables/extensions/FixedHeader/js/dataTables.fixedHeader.min.js') }}" type="text/javascript"></script>
to this:
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/fixedheader/3.1.2/css/fixedHeader.dataTables.min.css">
<script src="https://cdn.datatables.net/fixedheader/3.1.2/js/dataTables.fixedHeader.min.js" type="text/javascript"></script>
..make it work.
might be the version of those files? I don't have much time to test now, but let me know if i can help.
thanks
Thank you for sharing your solution @dmarcos89 !
@tabacitu You're welcome!😀 Awesome work by the way!!! 💪 Planning to migrate to Bootstrap4 anytime soon? Glad to help once i have a little time.
Of course. It depends a lot on AdminLTE - if they upgrade to Bootstrap 4, we can do that by supporting the latest AdminLTE version. If they don't, we might have to switch to CoreUI or something else that supports bootstrap4... Either way, it's a huge breaking change - a lot of blade files will change - so we'll probably do that for the next big version (backpack 4). I don't expect this to happen sooner than Q3 2018.
Bug report
Hi, im trying to include the fixed header plugin for data tables but not working.. Any idea? Thanks!
What I did:
In
resources/views/vendor/backpack/crud/list.blade.php
:Backpack, Laravel: