Panel |
---|
panelIconId | atlassian-info |
---|
panelIcon | :info: |
---|
bgColor | #F4F5F7 |
---|
|
This page is about Chat for JSM Cloud. Using Server or Data Center? Click here. |
To change the appearance of the Chat Widget on an external website, you need to modify the widget’s HTML code that you’ve placed on the website, along with the CSS rules placed on the page.
For example, to change the icon color to darkcyan, add the following code to the web page where you placed the Chat Widget:
Code Block |
---|
chatWidget = document.querySelector('chat-widget');
chatWidget.setAttribute('primary-color', '#2D60D8');
chatWidget.setAttribute('text-color', '#FFFFFF'); |
...
Code Block |
---|
<chat-widget primary-color="#2D60D8" text-color="#FFFFFF"
</chat-widget> |
Code Block |
---|
chatWidget.setAttribute('metadata', `[
{ name: 'Age', value: 100, render: true, },
{ name: 'Greeting', value: 'Hello world', render: true, },
{ name: 'Hidden', value: 'hidden', render: false, },
]`); |
...
Code Block |
---|
<chat-widget
metadata="[
{ name: 'Age', value: 100, render: true, },
{ name: 'Greeting', value: 'Hello world', render: true, },
{ name: 'Hidden', value: 'hidden', render: false, },
]"
</chat-widget> |
Code Block |
---|
chatWidget.setAttribute('auto-show', 'false'); |
...
Expand |
---|
title | Customization for the old widget |
---|
|
Code Block |
---|
var spartezSupportChat = {
url: 'https://jira.spartez.com',
portal: 2,
// ######## ADDED ############
iconClass: 'my-chat-icon-class'
// ######## END OF ADDED #####
} |
Code Block |
---|
.my-chat-icon-class.support-chat-icon {
background-color: darkcyan !important;
} |
Code Block |
---|
.spartez-support-chat-container .top-header{
background-color:#172b4d !important;
}
|
Code Block |
---|
.chats-list button.new-conversation{
background-color:#172b4d !important;
}
|
Code Block |
---|
.support-chat-icon {
background-color:#000 !important;
}
|
|