CustomComponentsApi

CustomComponentsApi

new CustomComponentsApi()

Methods

registerCustomComponents(params) → {void}

Registers template for custom components and callbacks that should be executed on component events refer to Custom UI components for template specification

Parameters:
Name Type Description
params object
Name Type Description
template string

Markdown for custom components

callbacks object

Map of functions representing callbacks defined in the custom component template. These functions will be executed when corresponding UI controls are changed or clicked. Function takes an object:

  • name {string} Name of the UI element
  • value {string} Value of the input element
  • interactionType {InteractionType} Type of interaction
  • interactionData {CallData|ChatData|EmailData} Five9 Interaction data
Returns:
Type:
void