MedicOneSystems / livewire-datatables

Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS
https://livewire-datatables.com/
MIT License
1.19k stars 258 forks source link

Pagination does not appear #193

Closed impactcolor closed 3 years ago

impactcolor commented 3 years ago

When I load the livewire datatable it does not display the pagination: https://www.screencast.com/t/0pRzgTjNA6GD

Here is my code: <livewire:orders/>

`namespace App\Http\Livewire;

use App\Models\Order; use Mediconesystems\LivewireDatatables\Column; use Mediconesystems\LivewireDatatables\NumberColumn; use Mediconesystems\LivewireDatatables\Http\Livewire\LivewireDatatable;

class Orders extends LivewireDatatable { public $model = Order::class;

public function columns()
{
  return [
      Column::name('inspection_date')
          ->label('Schedule Date')
          ->filterable()
          ->linkTo('user', 6),
      Column::name('address')
          ->label('Address')
          ->filterable()
          ->linkTo('user', 6),
      Column::name('city')
          ->label('City')
          ->filterable()
          ->linkTo('user', 6),
      Column::name('agent.name')
          ->label('Customer')
          ->filterable()
          ->linkTo('user', 6),
  ];
}

} `

Am I missing something?

stojankukrika commented 3 years ago

I have a same issue

stojankukrika commented 3 years ago

It looks like this line: https://github.com/MedicOneSystems/livewire-datatables/blob/master/resources/views/livewire/datatables/datatable.blade.php#L152 If you remove hidden class all work awesome ;)

stojankukrika commented 3 years ago

Why this issue closed?

marksalmon commented 3 years ago

Can't reproduce. Maybe an issue with your tailwind setup.

Whatever the cause, publish the views and then do what you like.