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>