Collapses the facet.
Return the debug info about this component.
Deselects multiple values.
Does not trigger a query automatically.
Can be an array of FacetValue
or an array of strings.
Deselects a single value.
Does not trigger a query automatically.
Can be a FacetValue
or a string (e.g., deselectValue('foobar')
or
deselectValue(new FacetValue('foobar'))
).
Disable the component. Normally this means that the component will not execute handlers for the framework events (query events, for example). Components are enabled by default on creation.
Enable the component. Normally this means that the component will execute handlers for the framework events (query events, for example). Components are enabled by default on creation.
Excludes multiple values.
Does not trigger a query automatically.
Can be an array of FacetValue
or an array of strings.
Excludes a single value.
Does not trigger a query automatically.
Can be a FacetValue
or a string (e.g., excludeValue('foobar')
or
excludeValue(new FacetValue('foobar'))
).
Expands the facet.
Return the bindings, or environment, for the current component.
Returns the configured caption for a desired facet value.
The string facet value whose caption the method should return.
Returns the currently displayed values as an array of FacetValue
.
The currently displayed values.
Returns the currently displayed values as an array of strings.
The currently displayed values.
Returns the endpoint for the facet.
The endpoint for the facet.
Returns the currently excluded values as an array of strings.
The currently excluded values.
Returns the currently selected values as an array of strings.
The currently selected values.
Returns the configured caption for the given FacetValue
.
The FacetValue
whose caption the method should return.
Determines whether the specified value is selected in the facet.
The name of the facet value to verify.
Hides the waiting animation in the facet header.
Resets the facet by un-selecting all values, un-excluding all values, and redrawing the facet.
Selects multiple values.
Does not trigger a query automatically.
Can be an array of FacetValue
or an array of strings.
Selects a single value.
Does not trigger a query automatically.
Can be a FacetValue
or a string (e.g., selectValue('foobar')
or
selectValue(new FacetValue('foobar'))
).
Shows less elements in the Facet (up to the original number of values).
See the enableMoreLess
, and
numberOfValues
options.
Shows the next page of results in the facet.
See the enableMoreLess
, and pageSize
options.
Triggers a query if needed, or displays the already available values.
Shows a waiting animation in the facet header (a spinner).
Switches the facet to AND
mode.
See the useAnd
, and
enableTogglingOperator
options.
Switches the facet to OR
mode.
See the useAnd
, and
enableTogglingOperator
options.
Toggles the exclusion state of a single value (excludes the value if it is not already excluded; un-excludes the value if it is already excluded).
Does not trigger a query automatically.
Can be a FacetValue
or a string.
Toggles the selection state of a single value (selects the value if it is not already selected; un-selects the value if it is already selected).
Does not trigger a query automatically.
Can be a FacetValue
or a string.
Unexcludes multiple values.
Does not trigger a query automatically.
Can be an array of FacetValue
or an array of strings.
Unexcludes a single value.
Does not trigger a query automatically.
Can be a FacetValue
or a string.
Changes the sort parameter for the facet.
See Facet.options.availableSorts for the list of possible values.
Also triggers a new query.
The new sort parameter for the facet.
Get the bound component to the given HTMLElement. Throws an assert if the HTMLElement has no component bound, unless using the noThrow argument.
If there is multiple component bound to the current HTMLElement, you must specify the component class.
HTMLElement for which to get the bound component.
Optional component class. If the HTMLElement has multiple components bound, you must specify which one you are targeting.
Boolean option to tell the method to not throw on error.
Allows the component to bind events and execute them only when it is enabled.
Contains the state of options for different components. Mainly used by ResultLink.
Contains the state of different components (enabled vs disabled). Allows to get/set values. Triggers component state event when modified. Each component can listen to those events.
A disabled component will not participate in the query, or listen to ComponentEvents.
Renders and handles the facet Search part of the component.
Renders and handles the facet Settings part of the component
Allows component to log in the dev console.
Contains the singleton that allows to trigger queries.
Contains the state of the query. Allows to get/set values. Trigger query state event when modified. Each component can listen to those events.
A reference to the root HTMLElement (the SearchInterface).
A reference to the root of every component, the SearchInterface.
The static ID that each component needs in order to be identified.
For example, SearchButton -> static ID: SearchButton -> className: CoveoSearchButton
A reference to the Analytics.client.
Whether the specified field
option value targets a date field in your index.
This allows the component to correctly build the outgoing Group By.
Default: false
.
data-date-field='true' data-date-field='false'
The list of range values to request (see Requesting Specific FacetRange Values).
By default, the index automatically generates range values.
Note:
The index cannot automatically generate range values for a
FacetRange
whosefield
option value references a dynamic field generated by a query function. In such a case, you must use theranges
option.
The format to apply to the range values. Only works for numeric values.
Some of the most commonly used formats are:
c0
: format a numeric value as currency.n0
: formats a numeric value as an integer.n2
: formats a numeric value as a floating point number with two decimal digits.The available formats are defined in the Globalize library.
Note: This option is ignored when the valueCaption
is defined.
data-value-format='foo'
Creates a new FacetRange
.
The HTML element on which to instantiate the component.
The configuration options to apply when creating the component.
The bindings required by the component.
A
FacetRange
is a facet whose values are expressed as ranges.You must set the
field
option to a value targeting a numeric or date field in your index for this component to work.This component extends the
Facet
component and supports allFacet
options except:enableSettings
enableSettingsFacetState
enableCollapse
availableSorts
customSort
computedFieldCaption
enableFacetSearch
facetSearchDelay
facetSearchIgnoreAccents
numberOfValuesInFacetSearch
enableMoreLess
pageSize
Coveo for Salesforce Free