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

CSS of datatable not loaded #20

Open
@thewebartisan7

Description

@thewebartisan7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions