Skip to content

Commit

Permalink
Merge branch 'itemfilter/feature/refactor' of github.com:EOX-A/EOxEle…
Browse files Browse the repository at this point in the history
…ments into itemfilter/feature/refactor
  • Loading branch information
srijitcoder committed Jul 17, 2024
2 parents ea932ad + f42ebf1 commit e66cf0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions elements/itemfilter/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ export class EOxItemFilter extends TemplateElement {
*/
async searchHandler() {
await searchMethod(this.#config, this.#items, this);
/**
* Fires when the filters are changed; event detail includes `filters` and `results`
*/
this.dispatchEvent(
new CustomEvent("filter", {
detail: {
Expand Down Expand Up @@ -207,6 +210,9 @@ export class EOxItemFilter extends TemplateElement {
*/
updateResult(evt) {
this.selectedResult = evt.detail;
/**
* Fires when a result is selected; event detail is `selectedResult`
*/
this.dispatchEvent(
new CustomEvent("select", {
detail: this.selectedResult,
Expand Down

0 comments on commit e66cf0f

Please sign in to comment.