|
@@ -3,7 +3,7 @@
|
|
## renderTopRightUI
|
|
## renderTopRightUI
|
|
|
|
|
|
<pre>
|
|
<pre>
|
|
- (isMobile: boolean, appState:{" "}
|
|
|
|
|
|
+ (isMobile: boolean, appState:
|
|
<a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L95">
|
|
<a href="https://github.com/excalidraw/excalidraw/blob/master/src/types.ts#L95">
|
|
AppState
|
|
AppState
|
|
</a>
|
|
</a>
|
|
@@ -29,8 +29,7 @@ function App() {
|
|
}}
|
|
}}
|
|
onClick={() => window.alert("This is dummy top right UI")}
|
|
onClick={() => window.alert("This is dummy top right UI")}
|
|
>
|
|
>
|
|
- {" "}
|
|
|
|
- Click me{" "}
|
|
|
|
|
|
+ Click me
|
|
</button>
|
|
</button>
|
|
);
|
|
);
|
|
}}
|
|
}}
|
|
@@ -55,8 +54,7 @@ function App() {
|
|
<Excalidraw
|
|
<Excalidraw
|
|
renderCustomStats={() => (
|
|
renderCustomStats={() => (
|
|
<p style={{ color: "#70b1ec", fontWeight: "bold" }}>
|
|
<p style={{ color: "#70b1ec", fontWeight: "bold" }}>
|
|
- {" "}
|
|
|
|
- Dummy stats will be shown here{" "}
|
|
|
|
|
|
+ Dummy stats will be shown here
|
|
</p>
|
|
</p>
|
|
)}
|
|
)}
|
|
/>
|
|
/>
|
|
@@ -105,8 +103,7 @@ function App() {
|
|
return (
|
|
return (
|
|
<div style={{ height: "500px" }}>
|
|
<div style={{ height: "500px" }}>
|
|
<button className="custom-button" onClick={() => excalidrawAPI.toggleMenu("customSidebar")}>
|
|
<button className="custom-button" onClick={() => excalidrawAPI.toggleMenu("customSidebar")}>
|
|
- {" "}
|
|
|
|
- Toggle Custom Sidebar{" "}
|
|
|
|
|
|
+ Toggle Custom Sidebar
|
|
</button>
|
|
</button>
|
|
<Excalidraw
|
|
<Excalidraw
|
|
UIOptions={{ dockedSidebarBreakpoint: 100 }}
|
|
UIOptions={{ dockedSidebarBreakpoint: 100 }}
|