1.1.0 • Published 1 year ago

@shop25/iframe v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Install

npm i @shop25/iframe

Usage

import { VisibleIframe, InvisibleIframe } from '@shop25/iframe';

const mountPoint = document.querySelector('.js-mount');

const iframe = new VisibleIframe({
    mountElement: mountPoint,
    src: `http://localhost`,
});

iframe.delete() # void;

iframe.on('windowOrCustomEventName', (event: Event | CustomEvent) => {
    console.log(event);
})

iframe.getWindow() # Window;
1.1.0

1 year ago

1.0.0

2 years ago

0.1.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.1

4 years ago