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