boolean
Specifies a boolean value whether enable / disable the new rule adding while adding new groups.
Defaults to true
boolean
Specifies a boolean value whether to enable / disable the drag and drop support to move the rules/ groups.
Defaults to false
boolean
Enables or disables the validation.
Defaults to false
boolean
Specifies a boolean value whether enable / disable the auto selection with the first value for the field.
Defaults to false
boolean
Specifies a boolean value whether enable / disable the auto selection with the first value for the operator.
Defaults to true
Specifies columns to create filters.
Defaults to {}
string
Defines class or multiple classes, which are separated by a space in the QueryBuilder element. You can add custom styles to the QueryBuilder using the cssClass property.
Defaults to ”
Object[]
| Object
| DataManager
Binds the column name from data source in query-builder.
The dataSource
is an array of JavaScript objects.
Defaults to []
Specifies the displayMode as Horizontal or Vertical.
Defaults to ‘Horizontal’
Triggers when rule/ group are dragged (moved) continuously.
Triggers when rule/ group dragging starts.
Triggers when rule/ group are dropped on to the target rule/ group.
boolean
Enables/Disables the not group condition in query builder.
Defaults to false
boolean
Enable or disable persisting component’s state between page reloads. If enabled, filter states will be persisted.
Defaults to false.
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
boolean
Specifies whether to enable separate connectors between rules/groups.
Defaults to false
Specifies the fieldMode as DropDownList or DropDownTree.
Defaults to ‘Default’
DropDownListModel
| DropDownTreeModel
Specifies the property for field.
Defaults to null
string
| Function
Specifies the template for the header with any other widgets.
Defaults to null
string
Specifies the height of the query builder.
Defaults to ‘auto’
number
If immediateModeDelay is set by particular number, the rule Change event is triggered after that period.
Defaults to 0
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ”
boolean
If match case is set to true, the grid filters the records with exact match. if false, it filters case insensitive records (uppercase and lowercase letters treated the same).
Defaults to false
number
Specifies the maximum group count or restricts the group count.
Defaults to 5
DropDownListModel
Specifies the property for operator.
Defaults to null
boolean
When set to true, the user interactions on the component are disabled.
Defaults to false
Defines rules in the QueryBuilder. Specifies the initial rule, which is JSON data.
Defaults to {}
string
Specifies the separator string for column.
Defaults to ”
Specifies the showButtons settings of the query builder component. The showButtons can be enable Enables or disables the ruleDelete, groupInsert, and groupDelete buttons.
Defaults to { ruleDelete: true , groupInsert: true, groupDelete: true }
Specifies the sort direction of the field names.
Defaults to ‘Default’
boolean
Shows or hides the filtered query.
Defaults to false
Specifies the property for value.
Defaults to null
string
Specifies the width of the query builder.
Defaults to ‘auto’
Adds the handler to the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event |
handler | Function |
Specifies the call to run when the event occurs. |
Returns void
Adds single or multiple groups, which contains the collection of rules.
Parameter | Type | Description |
---|---|---|
groups | RuleModel[] |
‘group collection’ to be passed to add the groups. |
groupID | string |
‘group id’ to be passed to add the groups. |
Returns void
Adds single or multiple rules.
Parameter | Type | Description |
---|---|---|
rule | RuleModel[] |
‘rule collection’ to be passed to add the rules. |
groupID | string |
‘group id’ to be passed to add the rule in groups. |
Returns void
Appends the control within the given HTML element
Parameter | Type | Description |
---|---|---|
selector (optional) | string | HTMLElement |
Target element where control needs to be appended |
Returns void
Adding unload event to persist data when enable persistence true
Returns void
Clones the group based on the group ID to the specific group.
Parameter | Type | Description |
---|---|---|
groupID | string |
Specifies the groupID that needs to be cloned. |
parentGroupID | string |
Specifies the parentGroupID in which the group to be cloned. |
index | number |
Specifies the index to insert the cloned group inside the parent group. |
Returns void
Clones the rule based on the rule ID to the specific group.
Parameter | Type | Description |
---|---|---|
ruleID | string |
Specifies the ruleID that needs to be cloned. |
groupID | string |
Specifies the groupID in which the rule to be cloned. |
index | number |
Specifies the index to insert the cloned rule inside the group. |
Returns void
When invoked, applies the pending property changes immediately to the component.
Returns void
Delete the Group
Parameter | Type | Description |
---|---|---|
target | Element | string |
‘target’ to be passed to delete the group. |
Returns void
Deletes the group or groups based on the group ID.
Parameter | Type | Description |
---|---|---|
groupIdColl | string[] |
‘groupIdColl’ to be passed to delete groups. |
Returns void
Deletes the rule or rules based on the rule ID.
Parameter | Type | Description |
---|---|---|
ruleIdColl | string[] |
‘ruleIdColl’ to be passed to delete rules. |
Returns void
Removes the component from the DOM and detaches all its related event handlers. Also it maintains the initial input element from the DOM.
Returns void
Removing unload event to persist data when enable persistence true
Returns void
Gets the query for Data Manager.
Parameter | Type | Description |
---|---|---|
rule | RuleModel |
‘rule’ to be passed to get query. |
Returns Query
Return the Query from current rules collection.
Returns Promise | object
Gets the group.
Parameter | Type | Description |
---|---|---|
target | Element | string |
‘target’ to be passed to get group. |
Returns RuleModel
Returns the persistence data for component
Returns any
Gets the Mongo query from rules.
Parameter | Type | Description |
---|---|---|
rule (optional) | RuleModel |
‘rule’ to be passed to get the sql. |
Returns string
Return the operator bound to the column.
Returns * { : }[]*
Gets the named parameter SQL query from rules.
Parameter | Type | Description |
---|---|---|
rule (optional) | RuleModel |
– Specify the rule to be passed to get the named parameter SQL string. |
Returns ParameterizedNamedSql
Gets the parameter SQL query from rules.
Parameter | Type | Description |
---|---|---|
rule (optional) | RuleModel |
– Specify the rule to be passed to get the parameter sql string. |
Returns ParameterizedSql
Get the predicate from collection of rules.
Parameter | Type | Description |
---|---|---|
rule | RuleModel |
‘rule’ to be passed to get predicate. |
Returns Predicate
Returns the route element of the component
Returns HTMLElement
Gets the rule.
Parameter | Type | Description |
---|---|---|
elem | string | HTMLElement |
‘elem’ to be passed to get rule. |
Returns RuleModel
Gets the rule or rule collection.
Returns RuleModel
Get the rules from SQL query.
Parameter | Type | Description |
---|---|---|
sqlString | string |
‘sql String’ to be passed to get the rule. |
sqlLocale (optional) | boolean |
Set true if Localization for Sql query. |
Returns RuleModel
Gets the sql query from rules.
Parameter | Type | Description |
---|---|---|
rule (optional) | RuleModel |
‘rule’ to be passed to get the sql. |
allowEscape (optional) | boolean |
Set true if it exclude the escape character. |
sqlLocale (optional) | boolean |
Set true if Localization for Sql query. |
Returns string
Get the valid rule or rules collection.
Parameter | Type | Description |
---|---|---|
currentRule (optional) | RuleModel |
‘currentRule’ to be passed to get the valid rules. |
Returns RuleModel
Return values bound to the column.
Parameter | Type | Description |
---|---|---|
field | string |
‘field’ to be passed to get the field values. |
Returns object[]
Handling unload event to persist data when enable persistence true
Returns void
Locks the group based on the group ID
Parameter | Type | Description |
---|---|---|
groupID | string |
Specifies the groupID that needs to be locked. |
Returns void
Locks the rule based on the rule ID.
Parameter | Type | Description |
---|---|---|
ruleID | string |
Specifies the ruleID that needs to be locked. |
Returns void
Notify the changes to component.
Parameter | Type | Description |
---|---|---|
value | string | number | boolean | Date | string[] | number[] | Date[] |
‘value’ to be passed to update the rule value. |
element | Element |
‘element’ to be passed to update the rule. |
type (optional) | string |
‘type’ to be passed to update the rule . |
Returns void
Applies all the pending property changes and render the component again.
Returns void
Removes the handler from the given event listener.
Parameter | Type | Description |
---|---|---|
eventName | string |
A String that specifies the name of the event to remove |
handler | Function |
Specifies the function to remove |
Returns void
Clears the rules without root rule.
Returns void
Set the rules from Mongo query.
Parameter | Type | Description |
---|---|---|
mongoQuery | string |
‘sql String’ to be passed to get the rule. |
mongoLocale (optional) | boolean |
Set true if Localization for Mongo query. |
Returns void
Sets the rules from the named parameter SQL query.
Parameter | Type | Description |
---|---|---|
sqlQuery | ParameterizedNamedSql |
– Specifies the named parameter SQL to be passed to set the rule and load it to the query builder. |
Returns void
Sets the rules from the parameter sql query.
Parameter | Type | Description |
---|---|---|
sqlQuery | ParameterizedSql |
– Specifies the parameter SQL to be passed to set the rule and load it to the query builder. |
Returns void
Set the rule or rules collection.
Parameter | Type | Description |
---|---|---|
rule | RuleModel |
‘rule’ to be passed to set rules. |
Returns void
Sets the rules from the sql query.
Parameter | Type | Description |
---|---|---|
sqlString | string |
‘sql String’ to be passed to set the rule. |
sqlLocale (optional) | boolean |
Optional. Set true if Localization for Sql query. |
Returns void
Validate the conditions and it display errors for invalid fields.
Returns boolean
Dynamically injects the required modules to the component.
Parameter | Type | Description |
---|---|---|
moduleList | Function[] |
? |
Returns void
Triggers when field, operator, value is change.
Triggers before the condition (And/Or), field, operator, value is changed.
Triggers when changing the condition(AND/OR), field, value, operator is changed.
EmitType<Event>
Triggers when the component is created.
EmitType<Object>
Triggers when dataBound to the Query Builder.
Triggers when changing the condition(AND/OR), field, value, operator is changed