Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

CSS of datatable not loaded #20

Open
thewebartisan7 opened this issue Jun 21, 2020 · 3 comments
Open

CSS of datatable not loaded #20

thewebartisan7 opened this issue Jun 21, 2020 · 3 comments

Comments

@thewebartisan7
Copy link

I see that CSS of datatable_css.blade.php are not loaded correctly.

In layout app.blade.php is missing the section inclusion or stack.

In datatable_body.stub:

@section('css')
    @include('layouts.datatables_css')
@endsection

{!! $dataTable->table(['width' => '100%', 'class' => 'table table-striped table-bordered']) !!}

@push('scripts')
    @include('layouts.datatables_js')
    {!! $dataTable->scripts() !!}
@endpush

I think should be:

@push('css')
    @include('layouts.datatables_css')
@endpush

...

and in app.blade.php:

...
<head>
    ...
    @stack('css')
</head>
...

However, seem still missing some CSS even if I add this fix, see screenshot below:

Screenshot 2020-06-21 at 11 21 26

@stefanrakicfaxi
Copy link

Pagination has some issue too

@AlaaMShaban96
Copy link

have the same problem, any solution ??

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

No branches or pull requests

4 participants