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
@@ -224,14 +237,18 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
224
237
</div>
225
238
);
226
239
};
227
-
```
240
+
{% endraw %}
241
+
{% endhighlight %}
242
+
{% endtabs %}
243
+
228
244

229
245
230
246
-**Use viewer inside Dialog**
231
247
- 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.
232
248
233
-
```ts
234
-
// App.tsx
249
+
{% tabs %}
250
+
{% highlight ts tabtitle="App.tsx" %}
251
+
{% raw %}
235
252
import React, { useRef, useCallback } from 'react';
236
253
import { DialogComponent } from '@syncfusion/ej2-react-popups';
237
254
import {
@@ -295,14 +312,18 @@ The React PDF Viewer can be embedded into dashboards, admin panels, split‑scre
295
312
</div>
296
313
);
297
314
};
298
-
```
315
+
{% endraw %}
316
+
{% endhighlight %}
317
+
{% endtabs %}
318
+
299
319

300
320
301
321
-**Use viewer inside Collapsible sections**
302
322
- 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.
303
323
304
-
```ts
305
-
// App.tsx
324
+
{% tabs %}
325
+
{% highlight ts tabtitle="App.tsx" %}
326
+
{% raw %}
306
327
import React, { useCallback, useRef } from 'react';
0 commit comments