Download the PHP package johncarter/filament-nested-sortable without Composer
On this page you can find all versions of the php package johncarter/filament-nested-sortable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download johncarter/filament-nested-sortable
More information about johncarter/filament-nested-sortable
Files in johncarter/filament-nested-sortable
Package filament-nested-sortable
Short Description A Filament plugin for ordering and nesting model records
License MIT
Informations about the package filament-nested-sortable
Filament Nested Sortable Plugin
A Filament Panels plugin for ordering and nesting model records.
Installation
You can install the package via composer:
Usage
Ensure your model has an order integer column and an integer parent_id with a default to -1.
1. Create a new page in your resource
e.g. app/Filament/Resources/PageResource/Pages/TreeListPages.php
Make sure the page extends JohnCarter\FilamentNestedSortable\Pages\NestedSortablePage.
2. Add the page to your main PageResource Page
3. Add plugins Tailwind CSS class content
Add the plugin's view paths to your resources/css/filament/cp/theme.css file:
4. Modify the create record form:
5. Add actions to the record action group
Customization
The package provides several methods and properties that you can override in your page class to customize the default behavior:
Overridable Properties
Overridable Methods
Data Retrieval & Display
Page Configuration
Record Actions
Header Actions
Form & Creation
Record Updates
These customization options allow you to tailor the nested sortable functionality to match your specific application requirements while maintaining the core drag-and-drop ordering and nesting capabilities.