Javascript API
New Widget
setColor
Set the color of the chat bubble.
Note: theme.reload must be called after setColor for changes to take effect (see example below).
Parameters
color | Bubble color, in hexadecimal format (‘#AABBCC’) |
Example
<script> $zopim(function() { $zopim.livechat.bubble.setColor('#000000'); $zopim.livechat.theme.reload(); // apply new theme settings }); </script>
show
function show()
Show the chat bubble.
If the user manually hide the chat bubble, it will remain hidden on subsequent page loads until the current session expires, or the reset API function is called.
Note: This function also shows the chat button if it is not already visible.
Example
<script> $zopim(function() { $zopim.livechat.bubble.show(); }); </script>
Show the chat bubble.
function show()
Hide the chat bubble.
function hide()
Show the chat bubble.
function reset()
Set the title displayed on the chat bubble.
function setTitle( title )
Set the text displayed on the chat bubble.
function setText( text )