This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
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.
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"
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,
}
}
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,
}
}
$wiredTables = new DefStudio\WiredTables();
echo $wiredTables->echoPhrase('Hello, DefStudio!');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.
php artisan vendor:publish --tag="wired-tables-views"
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