Giter Site home page Giter Site logo

filter-plugins's Introduction

说明

一款基于bootstrap的筛选插件,仅用于学习交流。

配置参数

url 请求链接 返回data

data: null // 传入数据数据 {}

clearBtn: true, // 是否显示清除按钮

title: [] 筛选参数配置

field: undefined, // 提取对应data里的属性

title: undefined, // 筛选类别标题

type: undefined, // 生成筛选类型 cheack,search,time,choose

label: undefined, // 生成复选框与下拉选择框所对应的属性名

attributes: null, // 自定义属性 {}

splitArray: null, // 生成复选框数据时分组参数 [],仅当type为cheack时生效

groupName: 'group', // 下拉类型选择分组组名

value: undefined, // 筛选框value值

unlimitedName: '不限',

searchBoxUrl: undefined, // 查询及时生成下查询下拉列表,仅当类型为search时生效 

searchBoxName: undefined, // 查询参数所对应的key值 默认为data.result.name

queryParams: function(params){ return params; } // 自定义查询参数 默认为当前输入框的value

change: function(checkes){return false;} // 选项改变时触发

clearBack: function(){ return false;} // 点击清除按钮的返回函数

方法

$filter.FilterBox('getAll') // 获取全部已选择的选项

$filter.FilterBox('clear') // 清空筛选项

filter-plugins's People

Contributors

slingsky avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.