Coveo for Salesforce (V3.33) JavaScript Search component reference
Coveo for Salesforce (V3.33) JavaScript Search component reference
Coveo for Salesforce comes with a set of JavaScript search user interface components. This article provides component API reference documentation that’s automatically generated from the source code.
Components
Components are the building blocks of the Coveo JavaScript Search Framework (see JavaScript Search Framework Components ).
AttachToCase Component
Component HTML element class:CoveoAttachToCase
The AttachToCase component is a Result Templates component that allows you to link a result to a Salesforce case.
When wanting to attach Knowledge articles, ensure that the sfkbid
, sfkbversionnumber
(legacy), sfversionnumber
(express), and sflanguage
fields are properly populated on the article
(see Add/Edit Mapping for Cloud V2 and Managing Fields for a Source for Cloud V1).
<div class="CoveoAttachToCase"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
Box Component
Component HTML element class:CoveoBox
The Box component represents the container that includes all the other box
components.
It inherits from a SearchInterface Component and supports all of its options.
<div class='CoveoBox'></div>
Properties
Property (type) |
Description |
---|---|
|
A disabled component will not participate in the query, or listen to ComponentEvents. |
|
Allows component to log in the dev console. |
|
Allows to get and set the different breakpoints for mobile and tablet devices. This is useful, amongst other, for Facet, Tab and ResultList |
|
The static ID that each component need to be identified. |
|
Creates a new SearchInterface. Initialize various singletons for the interface (e.g., usage analytics, query controller, state model, etc.). Binds events related to the query. |
|
The button to use when creating a ModalBox |
|
Content of a ModalBox |
|
The availables buttons (Ok, Apply, Cancel, etc.) |
|
The function that can be called to close the modal box. Note that this is also called by validation button such as APPLY, YES, etc. |
|
The content itself |
|
The modalBox container itself |
|
The overlay added on the body, which can be clicked to close the modalbox |
|
The wrapper of the content |
|
Possible options when creating a ModalBox |
|
Specify the content that you wish to put inside the modal box |
|
The button you wish to create (Using BUTTON enum |
|
Specify that you wish to add a prefix to the class name of the modal box container, to not clash with existing css in the page |
|
Specify if you wish to open the modal box full screen. Default is |
|
Specify if you wish to close the modal box when the overlay (black background) is clicked. Default is |
|
The size for the modal box |
|
Specify the title of the modal box |
|
Specify that you wish the modal box to close when the user click on the title. Default is |
|
Specify a validation function, which receives the button that was pressed. |
BoxBody Component
Component HTML element class:CoveoBoxBody
The BoxBody component takes care of appending a ResultList Component and ensuring the correct CSS styles are applied so that infinite scrolling works properly. By default, the ResultList component is initialized with the following option:
enableInfiniteScroll: true;
When you wish to modify other options on the ResultList component, when initializing the framework, add the following code.
Remember to change #MyBox
with the id of your CoveoBoxBody
component, and 20
with the page size you wish to modify.
$('#MyBox').coveo('initBox', {
BoxBody : {
infiniteScrollPageSize : 20
}
})
Use this component on your page this way:
<div class='CoveoBoxBody'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxCreateArticle Component
Component HTML element class:CoveoBoxCreateArticle
The BoxCreateArticle component allows the use of the Create Article button in the Coveo Insight Panel (see Adding a Create Article Button to the Insight Panel).
Use this component inside the coveo-box-settings
div.
<div class="coveo-box-settings">
<a class="CoveoBoxCreateArticle" target="_blank">
</a>
...
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxCurrentSort Component
Component HTML element class:CoveoBoxCurrentSort
The BoxCurrentSort component is only meant as a utility to set the title on its BoxPopup Component container. Whenever the current sort changes, for instance when a user clicks on a new Sort Component, this component takes care of setting a new title on the BoxPopup Component. This component must be included inside a BoxPopup component.
<div class='CoveoBoxPopup'>
<div class='CoveoBoxCurrentSort'></div>
<div class="coveo-sort-section">
[[sorts]]
</div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxCurrentTab Component
Component HTML element class:CoveoBoxCurrentTab
The BoxCurrentTab component is only meant as a utility to set the title on its BoxPopup Component container. Whenever the current tab changes, for instance when a user clicks on a new Tab Component, this component takes care of setting a new title on the BoxPopup Component. This component must be included inside a BoxPopup component.
<div class='CoveoBoxPopup'>
<div class='CoveoBoxCurrentTab'></div>
<div class="coveo-tab-section">
[[sorts]]
</div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxEditLink Component
Component HTML element class:CoveoBoxEditLink
The BoxEditLink component provides a clickable button that expands the current interface to another page that contains the Interface Editor.
<a class='CoveoBoxEditLink'></a>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxExpandLink Component
Component HTML element class:CoveoBoxExpandLink
The BoxExpandLink component takes care of creating a clickable link that expands to a full search interface page. It also takes care of sending the current state of the Box component to the full search interface so that you get the same (or a similar) result set when the full search page loads.
<a class="CoveoBoxExpandLink" target="_blank"></a>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxHeader Component
Component HTML element class:CoveoBoxHeader
The BoxHeader component takes care of instantiating a Searchbox
component with preconfigured options and a placeholder (see Coveo Searchbox Component).
Optionally, this component can also display a Remove context checkbox. You should normally place this component at the top of your box.
<div class='CoveoBoxHeader'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxPopup Component
Component HTML element class:CoveoBoxPopup
The BoxPopup component is only a container inside of which you can drop any other content or component. Since the Box component is designed to be included in the Salesforce console sidebar with a limited amount of space, it might be useful to add section that can be hidden or shown when the user clicks on them.
The HTML content inside the BoxPopup
div is used to determine what is shown or hidden when the panel is opened and closed.
<div class='CoveoBoxPopup'>
<div class='coveo-facet-column'>
<div class='CoveoFacet' data-field='@myfirstfacet'></div>
<div class='CoveoFacet' data-field='@mysecondfacet'></div>
<div class='CoveoFacet' data-field='@mythirdfacet'></div>
</div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxQuerySome Component
Component HTML element class:CoveoBoxQuerySome
The BoxQuerySome component is used to automatically include Salesforce fields to the query of an Insight Panel. By default, the fields are included in the advanced query (see Advanced Expression). This component is included in the default Insight Panel to include the case subject.
<div class="CoveoBoxQuerySome"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxQuerySummary Component
Component HTML element class:CoveoBoxQuerySummary
The BoxQuerySummary component inherits from the QuerySummary
component (see Coveo QuerySummary Component).
Its only added functionality is to display the range of currently displayed results when the result list is using infinite scrolling.
<div class='CoveoBoxQuerySummary'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxResultAction Component
Component HTML element class:CoveoBoxResultAction
The BoxResultAction component displays a small actionable button inside each result. When clicked, this button displays other sub components in a menu, such as the BoxQuickview
Component.
For more information on how to implement your own custom actions inside this component, see Creating Custom Actions for an Insight Panel or a Custom Box.
This component is intended to be included inside a BoxBody
ResultList Component.
<div class='CoveoBoxResultAction'>
<!-- Include other components here, such as the BoxQuickview or BoxAttachToCase components -->
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
Cancel Component
Component HTML element class:CoveoCancel
The Cancel component adds a button to cancel the case creation.
<div class='CoveoCancel'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
CaseCreation Component
Component HTML element class:CoveoCaseCreation
The CaseCreation component creates a form that allows Salesforce users to submit a case. The form automatically searches for solutions while the user is filling form parameters. To work, this component needs to interact with other components that contain the necessary information to create the case.
Warning:
A CaseCreation component must be present on the page for the form to work.
<div class='CoveoCaseCreation'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
ChatterThumbnail Component
Component HTML element class:CoveoChatterThumbnail
The ChatterThumbnail component is used in result templates to display the Chatter avatar of users. It is included by default in the User result template.
<span class="CoveoChatterThumbnail"></span>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
CommunityStateManager Component
Component HTML element class:CoveoCommunityStateManager
The CommunityStateManager component is used to connect your Lightning search component to the Coveo Standalone Searchbox (see Including the Standalone Searchbox in Your Community).
This component is used in a Lightning search page, in the coveo-search-section
, as such:
<div class="coveo-search-section">
<div class="CoveoCommunityStateManager"></div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
CreateArticle Component
Component HTML element class:CoveoCreateArticle
The CreateArticle component allows you to create an Article from the current page using Salesforce.
<div class="CoveoCreateArticle"></div>
You can also specify multiple type of Article to create using the articleTypes
property.
Coveo.option(root, {
CreateArticle: {
articleTypes: [
{name: "Knowledge", apiName: "Knowledge__kav"},
{name: "Documentation", apiName: "Documentation__kav"}
]
}
})
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
FullSearch Component
Component HTML element class:CoveoFullSearch
The FullSearch component allows your users access to a full length Coveo search page inside the Lightning experience.
<div class="CoveoFullSearch"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
|
Constructor for ResponsiveFullSearch |
Input Component
Component HTML element class:CoveoInput
The input component is used by the Field and the Picklist components.
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
|
Creates a new |
ProductMedia Component
Component HTML element class:CoveoProductMedia
The Product Media
component is used to display a product media image in a result template.
<div class='CoveoProductMedia' data-media-type='Product Image' data-width='70px' data-height='70px'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Creates a new |
ResultAction Component
Component HTML element class:CoveoResultAction
The base class for all ResultAction components. Its main responsibility is handling the visual elements of the Result Action.
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Construct a ResultAction component. |
SalesforceQuickview Component
Component HTML element class:CoveoSalesforceQuickview
The SalesforceQuickview component inherits from the Quickview component, and thus provides all the same options (see Coveo Component Quickview). It is made to support LockerService (see What is LockerService?).
<div class='CoveoSalesforceQuickview'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
SalesforceThumbnail Component
Component HTML element class:CoveoSalesforceThumbnail
The SalesforceThumbnail component is used in result templates to display a thumbnail preview for Salesforce content documents. It is included by default in the Document result template.
Objects without attachments may fail to render a preview. You should only use it for Salesforce Content documents.
<span class="CoveoSalesforceThumbnail"></span>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
Submit Component
Component HTML element class:CoveoSubmit
The Submit component adds a button to submit a case.
<div class="CoveoSubmit"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
UserActions Component
Component HTML element class:CoveoUserActions
The UserActions component allows your agents to see the actions performed by the end-user before or after the creation of a case within the Salesforce console. The component takes the information from the Coveo Usage Analytics events performed during the visit in which the case was created, as seen from the Visit Browser page of the Coveo Cloud Administration Console (see Reviewing User Visits With the Visit Browser).
You can configure which events the component displays.
The component typically appears in a tab of the Insight Panel, but can also be included as a standalone component in a Visualforce page (see Implementing the UserActions Component).
In an Insight Panel, the component would look like this:
<div class="CoveoBoxPopup" data-title="User actions" data-full-width="true" data-full-height="true" data-icon="coveo-sprites-tab-people">
<div class="CoveoUserActions"></div>
</div>
To add the UserActions component as a standalone component, you need to add the UserActions Visualforce Component in your Visualforce page (see UserActions Visualforce Component).
You also need to create a custom handler to open/close the component, or you can simply use the showButton
property.
<div class="CoveoUserActions" data-bind-on-box="false" data-show-button="true"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
ViewedByCustomer Component
Component HTML element class:CoveoViewedByCustomer
The ViewedByCustomer component allows your agents to see, within the Salesforce Lightning console, every result which the user clicked. It displays an icon and a label on each result, if already viewed by the customer who created the case (see Coveo Component ViewedByCustomer).
<div class="CoveoViewedByCustomer"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
Unique Identifier used by the Search-UI. |
|
Create an instance of ViewedByCustomer. |
BoxAttachToCase Component
Component HTML element class:CoveoBoxAttachToCase
The BoxAttachToCase component allows you to attach a result to the current Salesforce object. This component normally renders itself inside the BoxResultAction Component.
Your Salesforce users must have Attached Result
object permissions to be able to use this component (see Granting Access to Attach to Case Users).
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
BoxFieldTable Component
Component HTML element class:CoveoBoxFieldTable
The BoxFieldTable component is meant to be included inside a ResultList Component.
<div class='CoveoBoxFieldTable'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Creates a new FieldTable. |
BoxQuickview Component
Component HTML element class:CoveoBoxQuickview
The BoxQuickview component inherits from the Quickview component, and thus provides all the same options(see Coveo Component Quickview).
<div class='CoveoBoxQuickview'></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Creates a new |
CaseDeflection Component
Component HTML element class:CoveoCaseDeflection
The CaseDeflection component is used to allow administrators to increase case deflection by recommending items to your users as they enter a case. To learn how to implement it, see CaseDeflection Lightning Component
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
Field Component
Component HTML element class:CoveoField
The Field component adds a text input to a case creation form, where a user can enter text.
<div class="CoveoField"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
FullSearchNode Component
Component HTML element class:CoveoFullSearchNode
Interface Editor for FullSearchNode
Properties
Property (type) |
Description |
---|---|
|
Returns an array of the options which will not be in the interfaceEditor |
MetadataStore Component
Component HTML element class:CoveoMetadataStore
Metadata store use to store and analyze search interfaces.
Properties
Property (type) |
Description |
---|---|
|
Attach a event listener that add telemetry metadata to the first interfaceLoad event or the first input change event. |
Picklist Component
Component HTML element class:CoveoPicklist
This component adds a drop down list to a case creation form.
<div class="CoveoPicklist"></div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Create a new Component. Resolve all IComponentBindings if not provided. |
ProductMediaNode Component
Component HTML element class:CoveoProductMediaNode
Interface Editor node for the ProductMedia component.
Properties
Property (type) |
Description |
---|---|
|
The priority of the match. |
|
Get the properties that we don't want to front in the interface editor. |
|
Build a ProductMediaNode instance after a node have been matched. |
ResponsiveCreateArticle Component
Component HTML element class:CoveoResponsiveCreateArticle
ResponsiveCreateArticle is responsible to display a responsive button for the CreateArticle.
ResponsiveFullSearch Component
Component HTML element class:CoveoResponsiveFullSearch
ResponsiveFullSearch is responsible to display a responsive button for the FullSearch.
Properties
Property (type) |
Description |
---|---|
|
Constructor for ResponsiveFullSearch |
ResultActionsPostToFeed Component
Component HTML element class:CoveoResultActionsPostToFeed
The ResultActionsPostToFeed component is a Result Template component designed to work with the ResultActionsMenu Result Template component. Its main purpose is to insert the current result in a Salesforce Chatter "Post".
<div class="CoveoResultActionsMenu">
<div class="CoveoResultActionsPostToFeed"></div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Construct a ResultQuickAction component. |
ResultActionsSendEmail Component
Component HTML element class:CoveoResultActionsSendEmail
The ResultActionsSendEmail component is a Result Template component designed to work with the ResultActionsMenu Result Template component. Its main purpose is to insert the current result in a Salesforce "Email".
<div class="CoveoResultActionsMenu">
<div class="ResultActionsSendEmail"></div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Construct a ResultQuickAction component. |
ResultActionsSendLiveAgent Component
Component HTML element class:CoveoResultActionsSendLiveAgent
The ResultActionsSendLiveAgent component is a Result Template component designed to work with the ResultActionsMenu Result Template component. Its main purpose is to insert the current result in a Salesforce Live Agent chat window.
<div class="CoveoResultActionsMenu">
<div class="CoveoResultActionsSendLiveAgent"></div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Construct a ResultAction component. |
ResultQuickAction Component
Component HTML element class:CoveoResultQuickAction
The ResultQuickAction component is a Result Template component designed to work with the ResultActionsMenu Result Template component. It can be customized to perform any Salesforce Quick Action.
<div class="CoveoResultActionsMenu">
<div class="CoveoResultQuickAction"></div>
</div>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Construct a ResultQuickAction component. |
ResultQuickActionNode Component
Component HTML element class:CoveoResultQuickActionNode
Interface editor node for the ResultQuickAction.
Properties
Property (type) |
Description |
---|---|
|
The priority of the match. |
|
Get the properties that we don't want to front in the interface editor. |
|
Build a ResultQuickActionNode instance after a node has been matched. |
SalesforceAdvancedQuickview Component
Component HTML element class:CoveoSalesforceAdvancedQuickview
A Locker-friendly Quickview.
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Creates a new |
SalesforceQuickviewDocument Component
Component HTML element class:CoveoSalesforceQuickviewDocument
Boilerplate for the customizable quickview. Use the given @member queryString and @member documentID to initialize the state before opening an actual QuickviewDocument
SalesforceQuickviewQueryController Component
Component HTML element class:CoveoSalesforceQuickviewQueryController
Small override of the QueryController. Override @method getLastQuery to return a minimalist IQuery using the @member queryString.
Properties
Property (type) |
Description |
---|---|
|
A disabled component will not participate in the query, or listen to ComponentEvents. |
|
Allows component to log in the dev console. |
|
The static ID that each component need to be identified. |
SalesforceResultLink Component
Component HTML element class:CoveoSalesforceResultLink
The SalesforceResultLink component is used to open result links as Salesforce tabs. It inherits from the ResultLink Component.
<a class='CoveoSalesforceResultLink'></a>
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Creates a new |
StandaloneSearchbox Component
Component HTML element class:CoveoStandaloneSearchbox
The StandaloneSearchbox component is used to replace the default community searchbox. Its options are fronted in the Experience Builder (see Adding the Coveo Standalone Searchbox).
To learn how to implement this component in your community, see Integrating Coveo Components in an Experience Cloud site.
Properties
Property (type) |
Description |
---|---|
|
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. |
|
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. |
|
A reference to the Analytics.client. |
|
The static ID that each component need to be identified. |
|
Creates a new Omnibox component. Also enables necessary addons and binds events on various query events. |
StaticResourceCache Component
Component HTML element class:CoveoStaticResourceCache
The StaticResourceCache object is a singleton instance for batching calls to resolve paths to Static Resources. The results are kept in memory to speed up subsequent requests.
Properties
Property (type) |
Description |
---|---|
|
Sets the RemoteAction caller function to be used. Returns the set resolver function. |
ViewedByCustomerNode Component
Component HTML element class:CoveoViewedByCustomerNode
Interface Editor node for the Viewed by Customer.
Properties
Property (type) |
Description |
---|---|
|
The priority of the match. |
|
Build a ViewedByCustomerNode instance after a node have been matched. |
IQuickviewGetDocumentData Component
Component HTML element class:CoveoIQuickviewGetDocumentData
Small extension of the IGetDocumentOptions interface to allow the use of requestData in it.
IResultActionOptions Component
Component HTML element class:CoveoIResultActionOptions
The possible options for ResultAction.
Properties
Property (type) |
Description |
---|---|
|
The icon that the ResultAction will display. If text is provided, the button will contain that text. If the HTML of an SVG image is provided, that image will be displayed in the button. |
|
The tooltip that displays on hovering the ResultAction. |
IResultQuickActionOptions Component
Component HTML element class:CoveoIResultQuickActionOptions
The possible options for ResultQuickAction.
Properties
Property (type) |
Description |
---|---|
|
Specifies the name of the Quick Action bound to this result action. |
|
Optional. Set to true if you want to save and submit the quick action after setting the field values. Default is false |
|
The icon that the ResultAction will display. If text is provided, the button will contain that text. If the HTML of an SVG image is provided, that image will be displayed in the button. |
|
Optional. Specify the name of the event that clients will be able to hook to and modify the arguments before sending the action to Salesforce. |
|
Specifies the current record type. |
|
Specifies the fields that will be sent in the arguments of the quick action. This argument must be provided as a JSON object. Fields from the query result can be inserted by placing ${FieldName} in a string value. |
|
The tooltip that displays on hovering the ResultAction. |
|
The arguments provided to the onSendAction event. |
|
The arguments that will be proivided to the quick action API. |
|
The result that this quickAction is associated with. |
IResultQuickActionsEventOnSendAction Component
Component HTML element class:CoveoIResultQuickActionsEventOnSendAction
The arguments provided to the onSendAction event.
Properties
Property (type) |
Description |
---|---|
|
The arguments that will be proivided to the quick action API. |
|
The result that this quickAction is associated with. |
|
The arguments that will be proivided to the quick action API. |
|
The result that this quickAction is associated with. |
IViewedByCustomerOptions Component
Component HTML element class:CoveoIViewedByCustomerOptions
The options for the ViewedByCustomerComponent
Properties
Property (type) |
Description |
---|---|
|
The label that should be displayed when the component is displayed. |
|
If true, will display an icon when the component is displayed itself. |