Chat

Funckie na pracu s chatom

Methods

NázevPopis
chat:translatePreklad chatu do dalsich jazykov, zmena textov preddefinovanych textov
chat:alignSet chat box position. Left or right bottom corner of the screen. Left or right side of the screen.
chat:avatarNastavi logo(avatar) chatu, zobrazene ked nie je pripojeny ziadny agent
chat:messageNastavi text do chatovacieho okna, text nie je odoslany
chat:sendOdosle text do chatu
chat:openOtvori chatovacie okno
chat:closeSchova chatovacie okno
chat:endUkonci chat

chat:translate

Preklad chatu do dalsich jazykov, zmena textov preddefinovanych textov. Viac infomácií v priklade.

<script> smartsupp('chat:translate', { online: { title: 'TITLE EN' }, widget: { online: 'WIDGET EN online' } }, 'en'); // update translates </script>

chat:align

Set chat box position. Left or right bottom corner of the screen. Left or right side of the screen.

Example: left-bottom, right-bottom, left-side, right-side

<script> smartsupp('chat:align', 'left', 'bottom'); //smartsupp('chat:align', 'right', 'bottom'); //smartsupp('chat:align', 'left', 'side', null, 50); //smartsupp('chat:align', 'right', 'side', null, 50); </script>

chat:avatar

Nastavi logo(avatar) chatu, zobrazene ked nie je pripojeny ziadny agent

<script> smartsupp('chat:avatar', 'URL_TO_IMAGE'); // 55x55 px </script>

chat:message

Nastavi text do chatovacieho okna, text nie je odoslany

<script> smartsupp('chat:message', 'Hello, can you help me with...'); </script>

chat:send

Odosle text do chatu

<script> smartsupp('chat:send', 'Hello, can you help me with...'); </script>

chat:open

Otvori chatovacie okno

<script> smartsupp('chat:open'); </script>

chat:close

Schova chatovacie okno

<script> smartsupp('chat:close'); </script>

chat:end

Ukonci chat

<script> smartsupp('chat:end'); </script>