Interface ChatOptions

interface ChatOptions {
    backgroundColor?: string;
    basicPlaceholder?: string;
    chatbotPlaceholder?: string;
    chatWindowHeight?: number;
    chatWindowWidth?: number;
    isChatButtonCall?: "new" | "current";
    isConsultant?: boolean;
    isHelpdesk?: boolean;
    isNotice?: boolean;
    isPreviousHistory?: boolean;
    isResponseSpeed?: "normal" | "hide" | "fast" | "slow";
    isWorktime?: boolean;
    mobileButtonBottom?: number;
    mobileButtonLeft?: number;
    mobileButtonPosition?: "left" | "right";
    mobileButtonRight?: number;
    mobileButtonSize?: number;
    mobileHappytalkButtonChoice?: 2 | 1 | 3;
    mobileKakaotalkButtonChoice?: 2 | 1 | 3;
    mobileNavertalkButtonChoice?: 2 | 1 | 3;
    pcButtonBottom?: number;
    pcButtonLeft?: number;
    pcButtonPosition?: "left" | "right";
    pcButtonRight?: number;
    pcButtonSize?: number;
    pcHappytalkButtonChoice?: 2 | 1 | 3;
    pcKakaotalkButtonChoice?: 2 | 1 | 3;
    pcNavertalkButtonChoice?: 2 | 1 | 3;
    subTitle?: string;
    textColor?: string;
    theme?: "default" | "simple" | "banner" | "dark";
    title?: string;
    titleAlign?: "center" | "left" | "right";
}

Properties

backgroundColor?: string

배경 색상 (채팅 버튼, 채팅창 색상, 메세지 버블 색상) 예:

  1. '#cccccc'
  2. 'red'
  3. 'rgba(0, 0, 0, 0.05)'
basicPlaceholder?: string

채팅 입력창 상담원 연결 후 안내메시지

chatbotPlaceholder?: string

채팅 입력창 챗봇 상태일 경우 안내메시지

chatWindowHeight?: number

채팅창 높이

chatWindowWidth?: number

채팅창 너비

isChatButtonCall?: "new" | "current"

채팅 버튼 호출 (모바일 디바이스에서만 사용 가능)

isConsultant?: boolean

상담가능 상담원 on/off

isHelpdesk?: boolean

헬프데스크 on/off

isNotice?: boolean

공지사항 on/off

isPreviousHistory?: boolean

이전 대화 기록 on/off

isResponseSpeed?: "normal" | "hide" | "fast" | "slow"

상담 응답 속도 설정

isWorktime?: boolean

근무시간 on/off

mobileButtonBottom?: number

mobile 버튼 css bottom 값

mobileButtonLeft?: number

mobile 버튼 css left 값

mobileButtonPosition?: "left" | "right"

mobile 버튼 위치

mobileButtonRight?: number

mobile 버튼 css right 값

mobileButtonSize?: number

mobile 버튼 크기 (width, height 값 동일)

mobileHappytalkButtonChoice?: 2 | 1 | 3

해피톡 mobile 버튼 모양 선택

mobileKakaotalkButtonChoice?: 2 | 1 | 3

카카오톡 mobile 버튼 모양 선택

mobileNavertalkButtonChoice?: 2 | 1 | 3

네이버톡톡 mobile 버튼 모양 선택

pcButtonBottom?: number

pc 버튼 css bottom 값

pcButtonLeft?: number

pc 버튼 css left 값

pcButtonPosition?: "left" | "right"

pc 버튼 위치

pcButtonRight?: number

pc 버튼 css right 값

pcButtonSize?: number

pc 버튼 크기 (width, height 값 동일)

pcHappytalkButtonChoice?: 2 | 1 | 3

해피톡 pc 버튼 모양 선택

pcKakaotalkButtonChoice?: 2 | 1 | 3

카카오톡 pc 버튼 모양 선택

pcNavertalkButtonChoice?: 2 | 1 | 3

네이버톡톡 pc 버튼 모양 선택

subTitle?: string

부제

textColor?: string

글자 색상 (채팅 버튼 아이콘 및 메세지 버블 텍스트 색) 예:

  1. '#cccccc'
  2. 'red'
  3. 'rgba(0, 0, 0, 0.05)'
theme?: "default" | "simple" | "banner" | "dark"

테마

title?: string

제목

titleAlign?: "center" | "left" | "right"

제목/부제목 정렬