Skip to content

Latest commit

 

History

History

how-to-use-custom-data-to-style-your-talkjs-chat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

This is an example project to go with our tutorial on how to use custom data to style your TalkJS chat.

This project passes custom data to multiple TalkJS chatboxes. Then, we use the custom data to modify a newly created TalkJS Theme.

Prerequisites

To run this tutorial, you will need:

How to run the tutorial

  1. Clone or download this project.
  2. Go to index.js, and replace <YOUR_APP_ID> with your app ID from the TalkJS dashboard.
  3. Go to your TalkJS dashboard and navigate to the Themes tab. Create a new theme called "customDataToTheme" based on the "default" theme. The project adds the default role to all users in the chat.
  4. Edit the theme as per the instructions in the article.
  5. Run the HTML file by opening it in your browser.