Interface CustomPanelConfigOptions

Options that change how the custom panel looks.

interface CustomPanelConfigOptions {
    disableAnimation?: boolean;
    disableDefaultCloseAction?: boolean;
    hideBackButton?: boolean;
    hideCloseAndRestartButton?: boolean;
    hideCloseButton?: boolean;
    hidePanelHeader?: boolean;
    onClickBack?: () => void;
    onClickClose?: () => void;
    onClickCloseAndRestart?: () => void;
    onClickRestart?: () => void;
    title?: string;
}

Hierarchy

  • BasePanelConfigOptions
    • CustomPanelConfigOptions

Properties

disableAnimation?: boolean

Determines if the panel open/close animation should be turned off.

disableDefaultCloseAction?: boolean

Disables the default action that is taken when the close or close-and-restart buttons are clicked. The default action closes web chat and disabling this will cause the button to not do anything. You can override the button behavior by using the onClickClose or onClickCloseAndRestart callback.

hideBackButton?: boolean

Indicates if the back button in the custom panel should be hidden.

hideCloseAndRestartButton?: boolean

Indicates if the close-and-restart (X) button in the custom panel should be hidden. This value only applies if the close-and-restart button is enabled.

hideCloseButton?: boolean

Indicates if the close button in the custom panel should be hidden.

hidePanelHeader?: boolean

Indicates if the panel header should be hidden.

onClickBack?: () => void

This callback is called when the back button is clicked.

onClickClose?: () => void

This callback is called when the close button is clicked. This is called even if disableDefaultCloseAction is set to true.

onClickCloseAndRestart?: () => void

This callback is called when the close-and-restart button is clicked. This is called even if disableDefaultCloseAction is set to true.

onClickRestart?: () => void

Called when the restart button is clicked.

title?: string

The panel title which is left blank by default.

MMNEPVFCICPMFPCPTTAAATR