How to open dialog container to preview image in React File Manager?
This article explains how to open dialog container with required aspect ratio to preview an image in React File Manager.
<ejs-filemanager id='overview' height="700px" (popupOpen)="onPopupOpen($event)" [ajaxSettings]='ajaxSettings' [view]='view'>
</ejs-filemanager>
public onPopupOpen (args: PopupOpenCloseEventArgs) {
args.element.style.height = '600px';
args.element.style.width = '600px';
}
.e-image-wrap {
height: 100% !important;
}width: 100% !important;
Refer to the working sample for additional details and implementation: Sample
Conclusion
We hope you enjoyed learning how to open dialog container with required aspect ratio to preview image in React File Manager.
You can refer to our React File Manager feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our React File Manager example to understand how to create and visualize data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!