viframe
v1.0.1
Published
Vue.js iframe component
Downloads
3
Maintainers
Readme
VueFrame Component
VueFrame Component is an iframe component that makes it available to Vue developers to render any element from any url.
Install
npm install viframe --save
Example
How to import;
import VFrame from 'viframe'
export default {
components: {
VFrame,
},
}
How to use;
Example 1;
<v-frame
url="https://www.npmjs.com/package/viframe"
tag="div"
selector=".container"
/>
Example 2;
<v-frame
url="https://www.npmjs.com/package/viframe"
tag="div"
selector="#renderer"
/>
Options
| Option | Description | | -------- | ----------- | | url | Url link where the element to be rendered is located | | tag | The element to be rendered | | selector | Selector of the element to be rendered |