shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
whenIframeReady
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.when
Wait until the passed iframe is ready to be used
Params
- $iframe*-HTMLIframeElement
The iframe to wait on
Return
- -Promise<HTMLIframeElement>
A promise that will be resolved when an interaction has been made
Example
import { whenIframeReady } from '@blackbyte/sugar/dom'
whenIframeReady($myCoolIframe).then($iframe => {
// do something...
});Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space