Browse Source

docs: correct exportToBackend to onExportToBackend in README (#3952)

* docs: correct exportToBackend to onExportToBackend in README

* Update changelog with link to PR

* Add Excalidraw API title to changelog section

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>

Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
vanilla_orig
Pim Otte 3 years ago
parent
commit
5da3207633
No account linked to committer's email address

+ 6
- 0
src/packages/excalidraw/CHANGELOG.md View File

@@ -19,6 +19,12 @@ Please add the latest change on the top under the correct section.
19 19
 
20 20
 - Prevent gradual misalignment of the canvas due to floating point rounding errors [#3833](https://github.com/excalidraw/excalidraw/pull/3833).
21 21
 
22
+## Excalidraw API
23
+
24
+### Docs
25
+
26
+- Correct exportToBackend in README to onExportToBackend [#3952](https://github.com/excalidraw/excalidraw/pull/3952)
27
+
22 28
 ## 0.9.0 (2021-07-10)
23 29
 
24 30
 ## Excalidraw API

+ 1
- 1
src/packages/excalidraw/README.md View File

@@ -591,7 +591,7 @@ The below attributes can be set in `UIOptions.canvasActions.export` to customize
591 591
 | Attribute | Type | Default | Description |
592 592
 | --- | --- | --- | --- |
593 593
 | `saveFileToDisk` | boolean | true | Implies if save file to disk button should be shown |
594
-| `exportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
594
+| `onExportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
595 595
 | `renderCustomUI` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback should be supplied if you want to render custom UI in the export dialog. |
596 596
 
597 597
 #### `onPaste`

+ 1
- 1
src/packages/excalidraw/README_NEXT.md View File

@@ -597,7 +597,7 @@ The below attributes can be set in `UIOptions.canvasActions.export` to customize
597 597
 | Attribute | Type | Default | Description |
598 598
 | --- | --- | --- | --- |
599 599
 | `saveFileToDisk` | boolean | true | Implies if save file to disk button should be shown |
600
-| `exportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
600
+| `onExportToBackend` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback is triggered when the shareable-link button is clicked in the export dialog. The link button will only be shown if this callback is passed. |
601 601
 | `renderCustomUI` | <pre> (exportedElements: readonly NonDeletedExcalidrawElement[],appState: AppState,canvas: HTMLCanvasElement &#124; null) => void </pre> |  | This callback should be supplied if you want to render custom UI in the export dialog. |
602 602
 
603 603
 #### `onPaste`

Loading…
Cancel
Save