How to use the coveo-search-ui.QueryEvents.buildingQuery function in coveo-search-ui

To help you get started, we’ve selected a few coveo-search-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github coveo / search-ui / accessibilityTest / Testing.ts View on Github external
export const addQueryFilter = (filter: string) => {
  $$(getRoot()).on(QueryEvents.buildingQuery, (e, args: IBuildingQueryEventArgs) => {
    args.queryBuilder.advancedExpression.add(filter);
  });
};
github coveo / samples / jsui-custom-components / itemgrouping / src / ui / ItemGrouping.ts View on Github external
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));
  }