fix: hide collab button when onCollabButtonClick not supplied (#2598)

This commit is contained in:
David Luzar
2020-12-15 16:21:14 +01:00
committed by GitHub
parent 2b434db062
commit 98c26642d0
4 changed files with 7 additions and 9 deletions
+5 -5
View File
@@ -219,8 +219,8 @@ This is the user name which shows during collaboration. Defaults to `{name: ''}`
#### `excalidrawRef`
You can pass a ref when you want to access some excalidraw API's.
We expose the below API's
You can pass a `ref` when you want to access some excalidraw APIs.
We expose the below APIs:
| API | signature | Usage |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
@@ -241,15 +241,15 @@ const excalidrawRef = { current: { readyPromise: <a href="https://github.com/exc
#### `onCollabButtonClick`
This callback is triggered when clicked on the collab button in excalidraw
This callback is triggered when clicked on the collab button in excalidraw. If not supplied, the collab dialog button is not rendered.
#### `isCollaborating`
This props implies if the app is in collaboration mode
This prop indicates if the app is in collaboration mode.
#### `onPointerUpdate`
This callback is triggered when mouse pointer is updated
This callback is triggered when mouse pointer is updated.
```js
({ x, y }, button, pointersMap}) => void;