sawirricardo/filament-nouislider

Use noUiSlider Side by side with your filament apps

0.0.5 2024-02-29 00:15 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Use NoUiSlider

Installation

You can install the package via composer:

composer require sawirricardo/filament-nouislider

You can publish the config file with:

php artisan vendor:publish --tag="filament-nouislider-config"

Optionally, you can publish the views using

php artisan vendor:publish --tag="filament-nouislider-views"

This is the contents of the published config file:

return [
];

Usage

use Sawirricardo\FilamentNouislider\Forms\Components\Nouislider;
$form->schema([
    Nouislider::make('my_slider')
        ->live()
        ->start([5, 8])
        ->minValue(0)
        ->maxValue(10)
        ->step(1)
        ->connect(),
]);

Testing

composer test

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

License

The MIT License (MIT). Please see License File for more information.