rosamarsky/nova-range-filter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rosamarsky/nova-range-filter

Composer 安装命令:

composer require rosamarsky/nova-range-filter

包简介

A Laravel Nova range filter.

README 文档

README

Latest Version on Packagist Total Downloads License: MIT

A clean and simple Laravel Nova filter for selecting values between a minimum and maximum range.
Built on top of vue-slider-component.

RangeFilter

⚙️ Requirements

  • php: >=8.0
  • laravel/nova: ^4.0|^5.0

📦 Installation

composer require rosamarsky/nova-range-filter

🚀 Usage

Register it inside your Nova resource as usual:

use Rosamarsky\RangeFilter\RangeFilter;
use App\Models\Invoice;

class Invoice extends Resource
{
    public function filters(Request $request): array
    {
        return [
            RangeFilter::make('Amount', 'amount', [
                'min' => floor(Invoice::query()->min('amount')),
                'max' => ceil(Invoice::query()->max('amount')),
                'interval' => 10,
            ]),
        ];
    }
}

⚠️ The interval value must be greater than 0 and divide evenly into (max - min).

🧱 Available Options

Option Description Default
tooltip Tooltip display mode: none, always, hover, focus, active active
minRange Minimum distance between handles
maxRange Maximum distance between handles
clickable Allow changes by clicking on the slider true
disabled Disable the component false
label Value postfix (e.g. %, $, kg)

📜 License

This package is open-sourced software licensed under the MIT License.

统计信息

  • 总下载量: 23.93k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 2
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固