Interface ChatContainerProps

interface ChatContainerProps {
    config: PublicConfig;
    onAfterRender?: (instance: ChatInstance) => void | Promise<void>;
    onBeforeRender?: (instance: ChatInstance) => void | Promise<void>;
    renderUserDefinedResponse?: RenderUserDefinedResponse;
    renderWriteableElements?: Partial;
}

Hierarchy (View Summary)

Properties

config: PublicConfig

The config to use to load web chat. Note that the "onLoad" property is overridden by this component. If you need to perform any actions after web chat been loaded, use the "onBeforeRender" or "onAfterRender" props.

onAfterRender?: (instance: ChatInstance) => void | Promise<void>

This function is called after the render function of web chat is called. This function can return a Promise which will cause web chat to wait for it before rendering.

onBeforeRender?: (instance: ChatInstance) => void | Promise<void>

This function is called before the render function of web chat is called. This function can return a Promise which will cause web chat to wait for it before rendering.

renderUserDefinedResponse?: RenderUserDefinedResponse

This is the function that this component will call when a user defined response should be rendered.

renderWriteableElements?: Partial

This is the render function this component will call when it needs to render a writeable element.

MMNEPVFCICPMFPCPTTAAATR