You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/react/context-menu/custom-context-menu.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ The PDF Viewer supports extensive customization of the context menu, including r
14
14
15
15
## Add Custom Context Menu Items
16
16
17
-
You can add custom options to the context menu using the [addCustomMenu()](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/#addcustommenu) method. This is typically implemented during the `documentLoad` event.
17
+
You can add custom options to the context menu using the [addCustomMenu()](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#addcustommenu) method. This is typically implemented during the `documentLoad` event.
18
18
19
19
### Implementation Guide
20
20
@@ -81,7 +81,7 @@ root.render(<App />);
81
81
82
82
## Handle Click Events for Custom Menu Items
83
83
84
-
The [customContextMenuSelect()](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/#customcontextMenuselect) method defines actions for custom menu items.
84
+
The [customContextMenuSelect()](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#customcontextMenuselect) method defines actions for custom menu items.
85
85
86
86
```jsx
87
87
exportfunctionApp() {
@@ -221,7 +221,7 @@ root.render(<App />);
221
221
222
222
## Dynamic Context Menu Customization
223
223
224
-
The [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/#customcontextMenubeforeopen) event allows for dynamic showing or hiding of items based on selection or document state.
224
+
The [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#customcontextMenubeforeopen) event allows for dynamic showing or hiding of items based on selection or document state.
225
225
226
226
```jsx
227
227
exportfunctionApp() {
@@ -338,7 +338,7 @@ The following is the output of the custom context menu with customization.
338
338
{% endhighlight %}
339
339
{% endtabs %}
340
340
341
-
N> To set up the **server-backed PDF Viewer**, add the following `serviceUrl` within the <div> element in either the `index.tsx` or `index.jsx` file:
341
+
N> To set up the **server-backed PDF Viewer**, add the following `serviceUrl` within the <div> element in either the `index.TSX` or `index.JSX` file:
0 commit comments