You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This contains the customization capabilities you can achieve by using our JavaScript Sample App created using our [JavaScript SDK](https://docs.channelize.io/javascript-sdk-introduction-overview). This Sample App allows you to add a customized chat widget / docked layout on your website.
3
+
This JavaScript Sample app is built using our [JavaScript SDK](https://docs.channelize.io/javascript-sdk-introduction-overview), this will help you add a chat widget / docked layout to your website which can be customized to build chat exactly how you want, and unbelievably quickly. It enables achieving a beautiful chat app interface for all use-cases like live chat, online consultation & tutoring, team collaboration, messaging, customer support and gaming chat.
4
4
5
-
### Features : ###
6
-
- Highly customization
7
-
- Easy to implement
8
-
- Ready to use
9
-
- Multiple use cases
10
5
11
-
#### You can also check out our demo[here](https://demo.channelize.io).
6
+
#### See in Action[here](https://demo.channelize.io).
12
7
13
8
## Getting Started
14
9
15
-
Follow the below steps to add Channelize widget / docked layout on your website.
10
+
Follow the below steps to add the Channelize chat widget / docked layout to your website.
16
11
17
12
##### Step 1: Add widget #####
18
13
19
14
Add the Channelize widget div in the body tag of your website.
20
15
21
16
```html
22
17
<body>
23
-
<divid="ch_widget"></div>
18
+
<divid="ch_widget"></div>
24
19
</body>
25
20
```
26
21
@@ -42,12 +37,12 @@ Import the [`Channelize JS-SDK`](https://docs.channelize.io/javascript-sdk-intro
42
37
43
38
##### Step 4: Create widget object #####
44
39
45
-
Create widget object and call the load function which will require your public key as an argument.
40
+
Create Channelize.io object and call the load function which will require your public key as an argument.
@@ -62,12 +57,12 @@ Create widget object and call the load function which will require your public k
62
57
63
58
2. Install required npm packages.
64
59
```bash
65
-
npm install
60
+
sudo npm install
66
61
```
67
62
68
63
3. Build your changes.
69
64
```bash
70
-
npm run build
65
+
sudo npm run build
71
66
```
72
67
73
68
4. Start sample app.
@@ -77,69 +72,56 @@ npm start
77
72
78
73
###### For UI Customizations : ######
79
74
80
-
- Customize the UI of widget / docked layout as per your choice by changing the values of predefined variables in `./web-widget/src/scss/variables.scss file` or by making changes in the code of the elements/content.
75
+
- Customize the UI of chat widget / docked layout as per your choice by changing the values of predefined variables in `./web-widget/src/scss/variables.scss file` or by making changes in the code of the elements/content.
81
76
82
77
83
78
###### For Function Customizations : ######
84
79
85
-
- Add your functions or make code-level changes.
80
+
- Add your own functions or make code-level changes.
86
81
87
82
88
83
## Advanced
89
84
90
-
### Change the application :
91
-
If you want to change your current application, you just need to change the `PUBLIC_KEY` in `index.html` file.
85
+
### Load for logged-in user
86
+
Load the Channelize for an already logged-in user, you can use `loadWithUserId()` method instead of load() method. loadWithUserId() method takes two arguments user-id and access token. you can get access token in the response of login api call.
If you want to load the Channelize for already connected user, you can use loadWithConnect() method instead of load() method. loadWithConnect() method takes two arguments user-id and access token. you can get access token in the response of login api call.
98
+
### Load Recent Conversations Screen
99
+
Load the recent conversations screen using `loadRecentConversation()` method. It takes two arguments user-id and access token.
0 commit comments