defstudio / wired-tables
Laravel Livewire Datatables
Installs: 6 077
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: ^8.1
- illuminate/contracts: ^9.0|^10.0
- illuminate/database: ^9.0|^10.0
- livewire/livewire: ^2.5
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^v3.1
- nunomaduro/collision: ^6.0|^7.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^6.22|^v7.1|^8.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5|^10.0
- spatie/invade: ^1.1
- spatie/laravel-ray: ^1.26
- spatie/pest-plugin-snapshots: ^1.1
- spatie/x-ray: dev-main
- dev-main
- 1.x-dev
- v0.2.43
- v0.2.42
- v0.2.41
- v0.2.40
- v0.2.39
- v0.2.38
- v0.2.37
- v0.2.36
- v0.2.35
- v0.2.34
- v0.2.33
- v0.2.32
- v0.2.31
- v0.2.30
- v0.2.29
- v0.2.28
- v0.2.26
- v0.2.25
- v0.2.24
- v0.2.23
- v0.2.22
- v0.2.21
- v0.2.20
- v0.2.19
- v0.2.18
- v0.2.17
- v0.2.16
- v0.2.15
- v0.2.14
- v0.2.13
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.27
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-fix-clamp-z_index
- dev-fix-errors-on-prefix
- dev-fix_td_noWrap_in_limit_case
- dev-implement_compactTable_with_truncate_column_method
- dev-fix_sort_closure
- dev-fix_column_date
- dev-cached-page-size
- dev-revert-7-getField
- dev-getField
This package is auto-updated.
Last update: 2024-10-24 12:24:28 UTC
README
Laravel Livewire Datatables
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Support us
We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
Installation
You can install the package via composer:
composer require defstudio/wired-tables
You can publish the config file with:
php artisan vendor:publish --tag="wired-tables-config"
This is the contents of the published config file:
return [
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="wired-tables-views"
Tailwind configuration
In order to keep wired tables tailwind classes, add this to your tailwind.config.js
:
module.exports = { content: [ //... './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './vendor/wire-elements/modal/resources/views/*.blade.php', //... ], theme: { extend: {}, }, plugins: [], prefix: 'tw-', corePlugins: { preflight: false, } }
Using tailwind along with other frameworks (i.e. bootstrap)
set style = tailwind_3_prefixed
config in configs/wired-tables.php
(see above for info on how to publish config file)
and add these to your tailwind.config.js
:
module.exports = { content: [ //... './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './vendor/wire-elements/modal/resources/views/*.blade.php', ], //... prefix: 'tw-', corePlugins: { //... preflight: false, } }
Usage
$wiredTables = new DefStudio\WiredTables(); echo $wiredTables->echoPhrase('Hello, DefStudio!');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
TODO DOCS
Views can be overridden by publishing them
php artisan vendor:publish --tag="wired-tables-views"
Views can be overridden on a single table also:
MyTable extends WiredTable{ public function mainView(): string { return 'custom-main-view'; }
the following view methods can be overridden:
mainView()
: the main container view for the tabletableView()
: the main table view