定制 nrml-co/nova-big-filter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nrml-co/nova-big-filter

最新稳定版本:1.0.5

Composer 安装命令:

composer require nrml-co/nova-big-filter

包简介

A nice looking filter menu thats always open.

README 文档

README

Latest Version on Github Total Downloads

A nice looking filter menu that's always open.

Nova Big Filter Screenshot

Install

Install the package in to a Laravel Nova project via composer:

composer require nrml-co/nova-big-filter

Usage

Add the class to the card array of a resource with filters. The default 'Per Page' filter is not included. If you add the card but don't have any filters, you wont see anything. Add some filters and it will show up.

This package makes life easy by eliminating the tiresome click and scroll of the default filter. You may have to play with the order of your filters to get things looking great. For instance, Date Filters look best on the bottom.

use NrmlCo\NovaBigFilter\NovaBigFilter;
use App\Nova\Filters\YourFilter;
use App\Nova\Filters\YourOtherFilter;

public function filters()
{
    return [
        new YourFilter,
        new YourOtherFilter,
    ];
}

public function cards()
{
    return [        
        new NovaBigFilter,
    ];
}

Customization

Adding customization functions as needed, and by request. :)

setTitle($title)

Use setTitle to change the card title. The default is 'Filter Menu'.

public function cards()
{
    return [        
        (new NovaBigFilter)->setTitle('Big Filter'),
    ];
}

setMaxHeight($height)

Use setMaxHeight to change the max height of the filter block. The default is 350.

public function cards()
{
    return [        
        (new NovaBigFilter)->setMaxHeight(400),
    ];
}

hideFilterTitle()

Use hideFilterTitle to hide a title of the filter block, if you don't need it.

public function cards()
{
    return [        
        (new NovaBigFilter)->hideFilterTitle(),
    ];
}

统计信息

  • 总下载量: 305.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 36
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 36
  • Watchers: 2
  • Forks: 12
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-03-05