Skip to content

Commit daf4521

Browse files
Merge pull request #2307 from syncfusion-content/EJ2-1010807-staging-errors
1010807: Resolved staging errors
2 parents c19a310 + 8cdad3a commit daf4521

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

Document-Processing/PDF/PDF-Viewer/react/context-menu/custom-context-menu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can add custom options to the context menu using the [addCustomMenu()](https
2121
1. Define the menu items as an array of objects.
2222
2. Call the [`addCustomMenu`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#addcustommenu) method within the [`documentLoad`](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#documentload) event handler.
2323

24-
```jsx
24+
```js
2525
export function App() {
2626

2727
let menuItems = [
@@ -83,7 +83,7 @@ root.render(<App />);
8383

8484
The [customContextMenuSelect()](https://ej2.syncfusion.com/react/documentation/api/pdfviewer#customcontextMenuselect) method defines actions for custom menu items.
8585

86-
```jsx
86+
```js
8787
function customContextMenuSelect(args) {
8888
var viewer = document.getElementById('container').ej2_instances[0];
8989
switch (args.id) {
@@ -167,7 +167,7 @@ function setReadOnlyFalse(args) {
167167

168168
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.
169169

170-
```jsx
170+
```js
171171
function customContextMenuBeforeOpen(args) {
172172
for (var i = 0; i < args.ids.length; i++) {
173173
var search = document.getElementById(args.ids[i]);

Document-Processing/PDF/PDF-Viewer/react/how-to/existing-react-layout.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
2121

2222
Basic div:
2323

24-
```tsx
24+
```ts
2525
// App.tsx
2626
import React from 'react';
2727
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, PageOrganizer, Inject } from '@syncfusion/ej2-react-pdfviewer';
@@ -45,7 +45,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
4545

4646
Flex container: keep `minHeight: 0` on flex children so the viewer can shrink/grow correctly:
4747

48-
```tsx
48+
```ts
4949
// App.tsx
5050
import React from 'react';
5151
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, PageOrganizer, Inject } from '@syncfusion/ej2-react-pdfviewer';
@@ -74,7 +74,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
7474

7575
CSS Grid - reserve rows/columns using `grid-template-rows` or `grid-template-columns`:
7676

77-
```tsx
77+
```ts
7878
// App.tsx
7979
import React from 'react';
8080
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields, Inject } from '@syncfusion/ej2-react-pdfviewer';
@@ -157,7 +157,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
157157
- **Use viewer inside Tab components**
158158
- The react PDF Viewer are also supported inside Syncfusion tab components.
159159

160-
```tsx
160+
```ts
161161
// App.tsx
162162
import React, { useRef } from 'react';
163163
import { TabComponent, TabItemsDirective, TabItemDirective } from '@syncfusion/ej2-react-navigations';
@@ -230,7 +230,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
230230
- **Use viewer inside Dialog**
231231
- If the viewer sits inside a dialog, for example Syncfusion Dialog, render or initialize the viewer after the dialog open events. The DOM must be visible for the viewer to measure layout.
232232

233-
```tsx
233+
```ts
234234
// App.tsx
235235
import React, { useRef, useCallback } from 'react';
236236
import { DialogComponent } from '@syncfusion/ej2-react-popups';
@@ -301,7 +301,7 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
301301
- **Use viewer inside Collapsible sections**
302302
- For accordions or collapsible containers, either render the viewer lazily when the section expands or dispatch the resize event after expansion so the viewer can recompute layout.
303303

304-
```tsx
304+
```ts
305305
// App.tsx
306306
import React, { useCallback, useRef } from 'react';
307307
import {

Document-Processing/PDF/PDF-Viewer/react/theming-and-styling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Below is an approach that can be copied into the app that switches themes by dyn
7878

7979
**Link-swap approach:**
8080

81-
```tsx
81+
```ts
8282
// App.tsx
8383
type ThemeName = 'material3' | 'material3-dark';
8484
const THEME_LINK_ID = 'e-current-theme';
@@ -178,7 +178,7 @@ Apply overrides using a wrapper class so the rules are scoped and safe to mainta
178178
}
179179
```
180180
181-
```tsx
181+
```ts
182182
// src/App.tsx
183183
import './App.css';
184184
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, PageOrganizer, Inject } from '@syncfusion/ej2-react-pdfviewer';

0 commit comments

Comments
 (0)