FILTER-API Documentation

Source: Internet
Author: User

git address:https://github.com/jiqianqin/filters

Continuous optimization, welcome to join the discussion ~

Filter-tags

Parameters Description format Notes
Data
The data presented

[{"Key": "Arearange", "desc": "Area (㎡)",

"NodeList": [

{"Key": 1, "desc": "50m2 Below"},

{"Key": 2, "desc": "50-70m2"}]

},{

"Key": "Toward", "desc": "Facing",
"NodeList": [

{"Key": 1, "desc": "East"},
{"Key": 2, "desc": "South"}]
}]

Surebtn
OK button
SUREBTN: "OK"
Resetbtn
Empty button
RESETBTN: "Empty Options"
Selected
Initialize the selection
selected:{
arearange:[1,3,5,7],toward[1,2]}
Clickhandle
Click on the Specific tab
Clickhandle:function (data) {}
Data for this click. Format is

{key: "1", type: "Arearange"}

Comfirm
Trigger function after clicking confirm
Comfirm:function (data) {}
Data for all of the selected datasets {"Arearange": ["1", "3", "5", "7"], "toward": ["3", "4"]}
Multiselectenable
Whether to support multi-select
multiselectenable:false
False: Multiple selection true is not supported: multiple selection supported
Filtersigle

Parameters Description format Notes
Data
Show data
data:[
{"Key": null, "desc": "All"},
{"Key": 1, "desc": "Less than 1 million"},
{"Key": 2, "desc": "1.0015 billion"}]
Settingenable
Whether to support custom
Settingtype
Custom styles
Settingtype: "Interval"
Settingtip
Interval
Settingtip: "Interval"
Placeholderlow
Minimum interval hint
Placeholderlow: "Minimum Interval"
Placeholderhigh
Maximum interval hint
Placeholderhigh: "Highest range"
Surebtn
OK button display
SUREBTN: "OK"
Clickhandle
Click events
Clickhandle:function (data) {}
Data is a string, and the value of key
Comfirm
Click to confirm
Comfirm:function (data) {}

data:{

Intervallow: "Value of the upper interval",
Intervalhigh: "Value of the lower interval"

}

Filtermultiple

Parameters Description format Notes
Data
Show data Data
[{"Key": 1, "desc": "One Room"},
{"Key": 2, "desc": "Two Chambers",
{"Key": 3, "desc": "Three Chambers"}]
Surebtn
OK button display text
SUREBTN: "OK"
Comfirm
Execute function after clicking the Confirm button
Comfirm:function (data) {}
data:{
SelectList:

[+],

SELECTFLAG:0};

Selected: The data that has been selected

Selectflag 0: All 1: Select all 2: Partial selection

Selectallenable
Whether to support Select all
selectallenable:true
True: Support false: Not supported
Selectalltip
Select all to display the typeface
selectalltip:"All"
Selectallhandle
Click the Select all to trigger function
Selectallhandle:function () {}
Clickhandle
Click on each of the trigger functions
Clickhandle:function (key) {}
Key:1 (number of hits this time)















Filtergrade

Clickhandle

Parameters Description format Notes
Data
The data presented
[{
Key " NULL ,
"desc""All",
"NodeList": [{"key"null,"desc""All"}]
},"key""310101","desc""Huangpu",
  "NodeList": [
{"Key":NULL, "desc":"All"},
{"Key":"HP01","desc":"Dong Jia du"},
{"Key":"HP02","desc":"Dapuqiao"}
{"Key":"HP04","desc":"Huangpu Riverside"}]
},
{
"Key":"310104",
 "desc":"Xuhui",
 "NodeList": [
{"Key":NULL,"desc":"All"},
{"Key":"XH01","desc":"Caohejing"},
{"Key":"XH02","desc":"Chang Qiao"},
{"Key":"XH03","desc":"Ecust"},
{"Key":"XH04","desc":"Hua Jing"}
]},
Level
Show hierarchy number
Level:2

Up to 3

Clickhandle
Click events
Clickhandle:function () {}
Percent
Percentage of the display, Whole Act 99
percent: [at]

Filter-api Document

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.