Properties Private Readonly subscribersMethods on on< T > ( eventType: T , callback: ( event: Extract < ResetStateEvent , { type: T } > | Extract < NewSearchEvent , { type: T } > | Extract < FacetValueChangedEvent , { type: T } > | Extract < FetchFacetOptionsPendingEvent , { type: T } > | Extract < FetchFacetOptionsSuccessEvent , { type: T } > | Extract < FetchFacetOptionsErrorEvent , { type: T } > | Extract < FetchResultsPendingEvent , { type: T } > | Extract < FetchResultsSuccessEvent , { type: T } > | Extract < FetchResultsErrorEvent , { type: T } > ) => void ) : void Type parameters T: "RESET_STATE" | "NEW_SEARCH" | "FACET_VALUE_CHANGED" | "FETCH_FACET_OPTIONS_PENDING" | "FETCH_FACET_OPTIONS_SUCCESS" | "FETCH_FACET_OPTIONS_ERROR" | "FETCH_RESULTS_PENDING" | "FETCH_RESULTS_SUCCESS" | "FETCH_RESULTS_ERROR" Parameters Returns void Legend Constructor Property Method Accessor Inherited constructor Inherited property Inherited method Inherited accessor Private property Private method Settings Theme OS Light Dark
Class used for emitting and subscribing to events. It is the main interface for facets communication between each other and also the user interface.