1.0.5 • Published 2 years ago
skeets.iframe-dom v1.0.5
skeets.iframe-resize
append / prepend / replace an iFrame with content into the DOM.
Install
npm install skeets.iframe-dom(requires jQuery)
Usage
if (typeof iFrameDom === "undefined" || typeof iFrameDom.append !== "function") {
console.log("iFrameDom function not found. Install 'skeets.iframe-dom' through npm.");
}
else {
iFrameDom.append($targetElement, content, options);
}methods allowed: prepend, replace, append, include
Options
| Name | Function |
|---|---|
| style | Apply custom styles to the iFrame (accepts object with CSS property => value) |
| viewOriginalOption | Provide button that, when pressed, removes custom styles (true / false) |
| resizeOptions | Options passed to iFrameResize (see skeets.iframe-resize) |