dcyilmaz/livewiredatatable
最新稳定版本:v1.2.2
Composer 安装命令:
composer require dcyilmaz/livewiredatatable
包简介
Livewire Datatable Component
README 文档
README
The goal of this project is to create a datatable with laravel's advanced features without using the classic javascript datatable library. And it's like live! Because livewire!
Usage
1- Download package with composer in your laravel project.
composer require dcyilmaz/livewiredatatable
2- Publish views with
php artisan vendor:publish --tag=views
3- Use in any view with
@livewire('livewire-data-table', ['model' => \App\Models\User::class, 'api_route' => '/admin/users'])
@livewireScripts
How to design?
It comes with bootstrap 5 by default. If you want, you can replace it with tailwind ..etc libraries from the view files in “resources/views/livewire-data-table”. It's up to you! Do not forget add bootstrap cdn 🙂
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
Can i use any Model?
YES! 🙂
Still Beta!
Be careful when using it, it is still in beta.
统计信息
- 总下载量: 556
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-05