Widget UI
Last updated
Last updated
Set the vertical offset of the chat button from the edge of the browser window.
Set the widget margin for vertical to 35 pixels for bottom.
Set the horizontal offset of the chat button from the edge of the browser window.
Set the widget margin for horizontal to 35 pixels for left/right
Set the widget custom z-index value
Sample Code
Set z-index value for widget element 999.
Prevent scroll on mobile devices when widget maximized. default value is true.
Sample Code
Widget status is maximize if true.
To check widget visible or hidden
Show the chat widget.
Note: It is recommended to show the chat widget only when initial hidden or if any unread message in thread.
To widget show
Hide the chat widget and show launcher.
To widget show
Method
Parameters
Type
Description
setVerticalMargin
distance
Integer
Distance from the edge of the browser window, in pixels (number)
Method
Parameters
Type
Description
setHorizontalMargin
distance
Integer
Distance from the edge of the browser window, in pixels (number)
Method
Parameters
Type
Description
customZindex
value
number
Sets the stack order of the element. Negative numbers are allowed
Method
Parameters
Type
Description
status
value
String
Chat widget status in string 'max'
Method
Parameters
Type
Description
status
value
String
Chat widget status in string 'min'