Skip to content

Commit ee85c04

Browse files
committed
"Render simple counters in room header" details
1 parent 660a160 commit ee85c04

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎docs/labs.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# riot-web Labs features
2+
3+
Some notes on the features you can enable by going to `Settings->Labs`. Not exhaustive, chat in [#riot-web:matrix.org] for more information.
4+
5+
**Be warned! Labs features are not finalised, they may be fragile, they may change, they may be dropped. Ask in the room if you are unclear about any details here.**
6+
7+
## Render simple counters in room header
8+
9+
Allows rendering of labelled counters above the message list.
10+
11+
Once enabled, send a custom state event to a room to set values:
12+
13+
1. In a room, type `/devtools` to bring up the devtools interface
14+
2. Click "Send Custom Event"
15+
3. Toggle from "Event" to "State Event"
16+
4. Set the event type to: `re.jki.counter` and give it a unique key
17+
5. Specify the content in the following format:
18+
19+
```
20+
{
21+
"link": "",
22+
"severity": "normal",
23+
"title": "my counter",
24+
"value": 0
25+
}
26+
```
27+
28+
That's it. Now should see your new counter under the header.
29+
30+
[#riot-web:matrix.org]: https://matrix.to/#/#riot-web:matrix.org

0 commit comments

Comments
 (0)