Customization
Last updated
Last updated
You can configure menu options on the Widget constructor and attach custom events to each one of those.
TopMenu Interface
Description:
options
Adding the top menu in the constructor:
You can configure an initial menu which will appear if there is no message sent or the room is empty, these two options are configurable.
HomeMenu Interface
Description:
showHomeMenuOnEmptyRoom
Defines whether the menu should be displayed only if the room is empty, i.e. there is no member other than the user.
showHomeMenuOnEmptyMessages
Defines whether the menu should be displayed only if there are no messages in the room.
disableInputs
Defines whether the input options should be disable when the menu is displayed.
homeMenuTitle
Menu title.
options
Adding the menu in the constructor:
When a user clicks on any of the options, an event is triggered to the widget instance:
Each customized event contains the room where it was clicked.
You can customize the size, size of logo and logo.
StartButtonProps Interface
Description:
logoUrl
Logo URL
logoSize
Logo size
size
Bubble size
background
Customize the background color of the button using a Css Property
Adding the startButton options in the constructor:
Bubble Sizes
This property takes in a Css Property of color, that can be a color name, hex color, and also a Css Gradient, exaples:
background: 'red'
background: '#00A2CF'
background: 'linear-gradient(287.59deg, #082264 1.05%, #275795 72.39%, #447BC2 94.87%)'
You can customize the text, background color
TooltipPanelProps Interface
Description:
backgroundColor
Customize the background color of the tooltip using a Css Property
message
the displayed message inside the tooltip
closeIcon
Customize the background color of the close button icon using a Css Property
Adding the startButton options in the constructor:
This module can be used to switch between the user personal room and the room shared with the widget bot.
This module background and focus color of the icon can be changed, the colors are inside the object theme.
Description:
backgroundSwitch
Customize the background color of the Switch module with a Css Property
focusSwitch
Customize the color of the icon and label
Adding the color change options in the constructor example:
The icons and labels of this module are also editable.
Description:
allowClose
shows or hide the close button for the widget.
switchEnable
object that contains properties for the switch module.
switchEnable.enabled
boolean that enables the switch module to be shown.
switchEnable.logoUrl
url string for the icon shown at the left side of the module. if it isnt specified, then the icon would come from the header panel.
switchEnable.bot
object that contains properties for the bot icon and label.
switchEnable.group
object that contains properties for the group icon and label.
...iconUrl
string for the image icon for one of the options.
...label
string for the text of one of the options.
Adding the visual options in the constructor example:
property to show when a member of a room leave it or a new member joins the room.
Description:
showEvents
shows or hide the leave room and join room events from the operator view side in the widget group type.
Adding the showEvents options in the constructor example:
property to disable the inputs when there is only 1 member in the current room membersInfo.
Description:
disableWhenAlone
disable inputs if there is onl 1 member in the room.
Adding the disableWhenAlone options in the constructor example:
list.
list.