-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9154 from vector-im/benp/labs-docs
"Render simple counters in room header" details
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# riot-web Labs features | ||
|
||
Some notes on the features you can enable by going to `Settings->Labs`. Not exhaustive, chat in | ||
[#riot-web:matrix.org] for more information. | ||
|
||
**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.** | ||
|
||
## Render simple counters in room header | ||
|
||
Allows rendering of labelled counters above the message list. | ||
|
||
Once enabled, send a custom state event to a room to set values: | ||
|
||
1. In a room, type `/devtools` to bring up the devtools interface | ||
2. Click "Send Custom Event" | ||
3. Toggle from "Event" to "State Event" | ||
4. Set the event type to: `re.jki.counter` and give it a unique key | ||
5. Specify the content in the following format: | ||
|
||
``` | ||
{ | ||
"link": "", | ||
"severity": "normal", | ||
"title": "my counter", | ||
"value": 0 | ||
} | ||
``` | ||
|
||
That's it. Now should see your new counter under the header. | ||
|
||
[#riot-web:matrix.org]: https://matrix.to/#/#riot-web:matrix.org |