Download the PHP package anish/clearfield-action without Composer
On this page you can find all versions of the php package anish/clearfield-action. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download anish/clearfield-action
More information about anish/clearfield-action
Files in anish/clearfield-action
Download anish/clearfield-action
More information about anish/clearfield-action
Files in anish/clearfield-action
Vendor anish
Package clearfield-action
Short Description A Filament action that allows users to quickly reset all form fields with customizable confirmation dialogs and notifications.
License MIT
Package clearfield-action
Short Description A Filament action that allows users to quickly reset all form fields with customizable confirmation dialogs and notifications.
License MIT
Please rate this library. Is it a good library?
Informations about the package clearfield-action
Clear Field Action for Filament
A Filament action that allows users to quickly reset all form fields with customizable confirmation dialogs and notifications.
Features
- One-click form field clearing
- Customizable icons and colors
- Optional confirmation dialog
- Success notifications
- Works with Create and Edit pages
- Customizable callbacks (before/after reset)
- Compatible with Filament v4 & v5
Requirements
- PHP 8.1+
- Filament 4.0+ | 5.0+
- Laravel 10+
Installation
You can install the package via Composer:
Usage
Basic Usage
Add ClearFieldAction to your resource page's create record or edit record header actions:
With Confirmation
Custom Notification
With Callbacks
Hide Notification
Custom Icon and Color
Configuration
Publish the config file to customize default settings:
Available configuration options:
icon- Default icon for the actioncolor- Default color schemelabel- Default label texttooltip- Default tooltip textrequires_confirmation- Whether to show confirmation by defaultconfirmation_title- Default confirmation dialog titleconfirmation_description- Default confirmation dialog descriptionshow_notification- Whether to show notification by defaultnotification_title- Default notification titlenotification_body- Default notification body
Available Methods
requiresConfirmation(bool|Closure $condition)- Enable/disable confirmation dialogconfirmationTitle(string|Closure|null $title)- Set confirmation dialog titleconfirmationDescription(string|Closure|null $description)- Set confirmation dialog descriptionbeforeReset(Closure $callback)- Callback executed before clearing fieldsafterReset(Closure $callback)- Callback executed after clearing fieldsshowNotification(bool|Closure $show)- Show/hide success notificationnotificationTitle(string|Closure|null $title)- Set notification titlenotificationBody(string|Closure|null $body)- Set notification bodyicon(string $icon)- Set action iconcolor(string $color)- Set action colorlabel(string|null $label)- Set action labeltooltip(string $tooltip)- Set action tooltip
Compatibility
This package supports:
- Filament v4.0+
- Filament v5.0+
License
MIT
Author
anishregmi17
All versions of clearfield-action with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
filament/filament Version ^4.0|^5.0
spatie/laravel-package-tools Version ^1.15.0
filament/filament Version ^4.0|^5.0
spatie/laravel-package-tools Version ^1.15.0
The package anish/clearfield-action contains the following files
Loading the files please wait ...