mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Change to add callback
This commit is contained in:
parent
a96327b691
commit
4591a72d3a
@ -78,9 +78,9 @@ export interface ExtrasApi {
|
||||
getVisibleRoomBySpaceKey(spaceKey: string, cb: () => string[]): void;
|
||||
|
||||
/**
|
||||
* Sets the callback to get extra buttons in the room header (which can vary depending on the room being displayed).
|
||||
* Adds a callback to get extra buttons in the room header (which can vary depending on the room being displayed).
|
||||
*
|
||||
* @param cb - A callback that returns a JSX element representing the buttons (see {@link RoomHeaderButtonsCallback}).
|
||||
*/
|
||||
setRoomHeaderButtonCallback(cb: RoomHeaderButtonsCallback): void;
|
||||
addRoomHeaderButtonCallback(cb: RoomHeaderButtonsCallback): void;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user