3.0.5 • Published 9 years ago

apeman-react-frame v3.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

apeman-react-frame

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for iframe components.

Installation

$ npm install apeman-react-frame --save

Demo

Live demo is hosted on GitHub Pages.

Usage

'use strict'

import React from 'react'
import {ApFrame, ApFrameStyle} from 'apeman-react-frame'
import {ApSpinnerStyle} from 'apeman-react-spinner'

const ExampleComponent = React.createClass({
  render () {
    return (
      <div>
        <ApSpinnerStyle />
        <ApFrameStyle/>
        <ApFrame width="100%"
                 height={ 240 }
                 src="./foo/bar.html"
                 alt="Resource not found"/>
      </div>
    )
  }
})

Components

ApFrameStyle

Props

NameTypeDefaultDescription
styleobject{}
highlightColorstringApStyle.DEFAULT_HIGHLIGHT_COLOR
backgroundColorApStyle.DEFAULT_BACKGROUND_COLOR

ApFrame

Props

NameTypeDefaultDescription
srcstringnullSource URL string
spinnerstringApSpinner.DEFAULT_THEMETheme of spinner
fullboolfalseDisplay with full screen
widthnumberstring'auto'Component width
heightnumberstring'auto'Component height
iframeReffuncRef to iframe

ApMarkableFrame

Props

NameTypeDefaultDescription
detectableSelectorstringSelector for detectable elements
onDetectfuncHandler for detection
highlightSelectorstringSelector for highlight
onMarkableTapfuncHandler for tap on markable
onMarkableHoverInfuncHandler for hover-in on markable
onMarkableHoverOutfuncHandler for hover-out on markable

License

This software is released under the MIT License.

Links

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.12

9 years ago

2.0.11

9 years ago

2.0.10

9 years ago

2.0.9

9 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago