2.0.12 • Published 6 years ago

the-frame v2.0.12

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

the-frame

Build Status npm Version JS Standard

iFrame of the-components

Installation

$ npm install the-frame --save

Usage

'use strict'

import React from 'react'
import { TheFrame, TheFrameStyle } from 'the-frame'
import { TheSpinStyle } from 'the-spin'

class ExampleComponent extends React.PureComponent {
  render () {
    return (
      <div>
        <TheSpinStyle/>
        <TheFrameStyle/>
        <TheFrame src='./example-html.html'
                  style={{with: '200px', height: '200px', overflow: 'auto'}}
        />

        <hr/>

        <TheFrame src='./example-html.html'
                  style={{with: '200px', height: '200px', overflow: 'auto'}}
                  spinning
        />

        <hr/>


        <h3>Embed</h3>
        <TheFrame src='./example-html.html'
                  embed
                  style={{with: '200px', height: '200px', overflow: 'auto'}}
        />
      </div>

    )
  }
}

export default ExampleComponent

Components

TheFrame

iFrame of the-components

Props

NameTypeDescriptionDefault
altstringAlt text'Page Not Found'
embedboolEnbed source content as dynamic htmlfalse
onLoadfuncHandler for Loadnull
spinningboolSpinning or notfalse
srcstringSource URLnull

TheFrameStyle

Style for TheFrame

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links

2.0.12

6 years ago

2.0.11

6 years ago

2.0.10

6 years ago

2.0.9

6 years ago

2.0.8

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago