Download the PHP package invaders-xx/filament-gridstack-dashboard without Composer
On this page you can find all versions of the php package invaders-xx/filament-gridstack-dashboard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download invaders-xx/filament-gridstack-dashboard
More information about invaders-xx/filament-gridstack-dashboard
Files in invaders-xx/filament-gridstack-dashboard
Package filament-gridstack-dashboard
Short Description Create and manage filament Dashboards using gridstack js
License MIT
Homepage https://github.com/invaders-xx/filament-gridstack-dashboard
Informations about the package filament-gridstack-dashboard
Create and manage filament Dashboards using gridstack js
This package allows to add widgets and define the layout of the dashboard page on a per-user basic. This package uses Laravel model settings package to ensure persistence of data in the database.
Installation
You can install the package via composer:
Note: Add plugin Blade files to your custom theme
tailwind.config.js
for dark mode.To set up your own custom theme, you can visit the official instruction page on the Filament website.
Add the plugin's views to your tailwind.config.js
file.
Please visit Laravel model settings to configure your User model to use this package.
You can publish the config file with:
This is the contents of the published config file:
There is no option at the moment.
Optionally, you can publish the views using
Usage
All functions used to configure the plugin can have a closure as argument.
You can configure the number of columns of the grid. Default is 12.
You can configure the number of rows of the grid. Default is 0 (no constraint).
You can configure the settings path (string in dotted format where to store in the settings) By default the path is 'dashboard.layout'
You can enable/disable floating widgets (default: true).
You can enable/disable dragging widgets (default: false).
You can enable/disable resizing widgets (default: false).
You can specify resizing handles position of widgets. It can be any combination of n,ne,e,se,s,sw,w,nw or all ( default: 'se').
You can configure the navigationIcon, the navigationGroup, the navigationLabel, the navigationSort, canAccess and shouldRegisterNavigation
You can configure a default grid using defaultGrid() function. This function has an array as parameter. This array should have the following format:
FYI, a 12 columns grid, x goes from 0 to 11
Testing
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
- David Vincent
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-gridstack-dashboard with dependencies
filament/filament Version ^3.0
glorand/laravel-model-settings Version ^7.0
spatie/laravel-package-tools Version ^1.15.0