Configuration
Quickley Live Chat is configured via window.QCHAT_CFG
object before the widget code, e.g.:
button_type
button_type
Button display type. Possible values:
"hexagon"
- displayed as a hexagon button with Quickley logo"horizontal"
- displayed as a button with text
Default value is "hexagon"
.
button_text
button_text
Displayed text at the button with type horizontal
.
position
position
Chat button position. Possible values:
"left"
- at the bottom of the screen, on the left"right"
- at the bottom of the screen, on the right"center"
- at the bottom of the screen, on the centre. Available only for button with type"horizontal"
Default value is "left"
.
button_margin
button_margin
Margin of the button from the window borders. Value is defined as a number or string without "px".
Default value for left
and right
is 10
and for bottom
is 20
.
button_size
button_size
Size of the button from the window borders. Possible values:
"s"
- small button48x48
"m"
- medium button64x64
"l"
- large button72x72
Default value is "m"
.
main_color
main_color
Main color of the Chat color scheme. This option overrides value from settings.
Default value is specified in the chat configuration window.
text_color
text_color
Text color of the Chat color scheme.
The default value is determined automatically based on main_color
.
button_hidden
button_hidden
The start visibility state of the button. If true
the widget starts hidden. You can also show and hide the widget using show
and hide
methods.
Default value is false
.
container
container
Allows embedded chat window into specific container. It takes an element identifier or a link to a HTML element as a value.
Default value is undefined
.
client_id
client_id
Used to recognize users logged into your system regardless of the device or browser they use. To prevent access to other user's conversations the client_id
parameter must be signed with JSON Web Signature. The key with which the identifier should be signed is displayed in the chat configuration window.
If value of client_id
is unsigned or signed using a wrong sign key it will be ignored.
Below are examples of server side user ID signing.
An already signed string must be passed to the chat configuration.
client_data
client_data
Allows specify any information about visitors like email, phone or any kind of data. This info displays in the right panel in Quickley.
Default value is {}
.
Last updated