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.
To run this tutorial, you will need:
- Clone or download this project.
- Go to
index.js
, and replace <YOUR_APP_ID> with your app ID from the TalkJS dashboard. - 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.
- Edit the theme as per the instructions in the tutorial.
- Run the HTML file by opening it in your browser.