sawirricardo / filament-nouislider

Use noUiSlider in your filament and forms package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use noUiSlider Side by side with your filament apps

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.

About

Use noUiSlider in your filament and forms package

License:MIT License


Languages

Language:PHP 69.8%Language:JavaScript 19.2%Language:Blade 10.6%Language:CSS 0.3%