addCustomTile()
addCustomTile({name: string, html: string, position: string "first"|"last"})
Last updated
addCustomTile({name: string, html: string, position: string "first"|"last"})
Last updated
Adds a custom tile as a first or last position in the tiles list. You defined the content of the tile with the html property. Name is the title of the tile.
The method must be called after you have joined the room. It won't do anything if the room hasn't loaded yet.
In the below example a custom AI tile is added to the stage.