Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const addQueryFilter = (filter: string) => {
$$(getRoot()).on(QueryEvents.buildingQuery, (e, args: IBuildingQueryEventArgs) => {
args.queryBuilder.advancedExpression.add(filter);
});
};
constructor(public element: HTMLElement, public options: IItemGroupingOptions, public bindings: IComponentBindings) {
super(element, ItemGrouping.ID, bindings);
this.options = ComponentOptions.initComponentOptions(element, ItemGrouping, options);
this.bind.onRootElement(QueryEvents.buildingQuery, (args: IBuildingQueryEventArgs) => this.handleBuildingQuery(args));
this.bind.onRootElement(QueryEvents.doneBuildingQuery, (args: IBuildingQueryEventArgs) => this.handleDoneBuildingQuery(args));
}