3.0.5 • Published 9 years ago
apeman-react-frame v3.0.5
apeman-react-frame
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
Name | Type | Default | Description | |
---|---|---|---|---|
style | object | {} | ||
highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | ||
backgroundColor | ApStyle.DEFAULT_BACKGROUND_COLOR |
ApFrame
Props
Name | Type | Default | Description | ||
---|---|---|---|---|---|
src | string | null | Source URL string | ||
spinner | string | ApSpinner.DEFAULT_THEME | Theme of spinner | ||
full | bool | false | Display with full screen | ||
width | number | string | 'auto' | Component width | |
height | number | string | 'auto' | Component height | |
iframeRef | func | Ref to iframe |
ApMarkableFrame
Props
Name | Type | Default | Description | |
---|---|---|---|---|
detectableSelector | string | Selector for detectable elements | ||
onDetect | func | Handler for detection | ||
highlightSelector | string | Selector for highlight | ||
onMarkableTap | func | Handler for tap on markable | ||
onMarkableHoverIn | func | Handler for hover-in on markable | ||
onMarkableHoverOut | func | Handler 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