Skip to content

tiledash.setState

Sets a value the template reads as `state.<key>`, so the script can switch what the template draws around it.

Syntax

tiledash.setState(key, value)

Example

tiledash.setState('period', 'week');