EasyUI
Filter Builder
Extension » Filter Builder
Include 'jquery.filterbuilder.js' file
Create the filter builder
Properties
Name | Type | Description | Default |
---|---|---|---|
rules | array | The filter rules. | [] |
fields | array | The data fields. | [] |
groupMenus | array | The group menu items. |
[ { name: 'condition', text: 'Add Condition' }, { name: 'group', text: 'Add Group' } ] |
groupOperators | array | The group operators. |
[ { op: 'and', text: 'And' }, { op: 'or', text: 'Or' } ] |
operators | array | The field operators. |
[ { op: 'contains', text: 'Contains' }, { op: 'equal', text: 'Equal' }, { op: 'notequal', text: 'Not Equal' }, { op: 'beginwith', text: 'Begin With' }, { op: 'endwith', text: 'End With' }, { op: 'less', text: 'Less' }, { op: 'lessorequal', text: 'Less Or Equal' }, { op: 'greater', text: 'Greater' }, { op: 'greaterorequal', text: 'Greater Or Equal' } ] |
defaultEditor | object | The default editor for all operators. | {type:'textbox',options:{}} |
Methods
Name | Parameter | Description |
---|---|---|
options | none | Return the options object. |
getRules | Return the filter rules. |