The component can be passed all atrributes, along with options and events from iframe-resizer. Install npm install -save iframe-resizer-react Iframe-resizer is the result of many 100s of hours of work, if you would like to join others in showing support for the development of this project, then please feel free to buy me a coffee. Works with ViewerJS to support PDF and ODF documents.Exposes parent position and viewport size to the iFrame.Provides custom sizing and scrolling methods.Fixes in page links in iFrame and supports links between the iFrame and parent page.Simplified messaging between iFrame and host page via postMessage.Detects events that can cause the page to resize (Window Resize, CSS Animation and Transition, Orientation Change and Mouse events). Detects changes to the DOM that can cause the page to resize using MutationObserver.Provides a range of page size calculation methods to support complex CSS layouts.Domain authentication for cross domain iFrames.Works with multiple and nested iFrames.Height and width resizing of the iFrame to content size.It provides a range of features to address the most common issues with using iFrames, these include: This library is the official React interface for iframe-resizer, which enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |