Download the PHP package vodafoneziggonl/filament-multi-widget without Composer
On this page you can find all versions of the php package vodafoneziggonl/filament-multi-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vodafoneziggonl/filament-multi-widget
More information about vodafoneziggonl/filament-multi-widget
Files in vodafoneziggonl/filament-multi-widget
Package filament-multi-widget
Short Description A Filament widget that encompasses multiple widgets.
License MIT
Homepage https://github.com/vodafoneziggonl/filament-multi-widget
Informations about the package filament-multi-widget
Combine multiple widgets into one
This package adds a new type of widget to your Filament application. The Multi Widget allows you to combine multiple widgets into a single widget, that can be switched using tabs. This plugin helps clean up your Filament dashboard.
Installation
This package can be installed via Composer:
Usage
Create a new Multi Widget by extending the VodafoneZiggoNL\MultiWidget\MultiWidget
class.
The $widgets
property contains the classes of all the widgets that should be added to your Multi Widget. These are normal Filament widgets that you created.
The Multi Widget above will now render as follows:
In case your widget is displayed a second time on the dashboard, make sure the widget is not automatically added to the dashboard again. Check the discoverWidgets()
function in your adminPanelProvider.php
file.
Using custom labels for tabs
By default, the label name is generated based on the class name. If you want to customize the label for the tab, add the getDisplayName()
method to your widget.
Persist tabs in session
To persist the tabs in the user's session, use the shouldPersistMultiWidgetTabsInSession() method:
Contributing
Please see CONTRIBUTING for details.
Credits
License
The Apache License 2.0. Please see License File for more information.
All versions of filament-multi-widget with dependencies
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.0