4.1.5 • Published 9 years ago
apeman-react-image v4.1.5
apeman-react-image
apeman react package for image component.
Installation
$ npm install apeman-react-image --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React, {PropTypes as types} from 'react'
import {ApImage, ApImageStyle} from 'apeman-react-image'
const ExampleComponent = React.createClass({
render () {
return (
<div>
<ApImageStyle backgroundColor='#333'
/>
<ApImage src='http://example.com/images/sample.png'
alt='This is it!'
scale='fit'
/>
</div>
)
}
})
Components
ApImageStyle
Props
Name | Type | Default | Description |
---|
ApImage
Props
Name | Type | Default | Description | ||
---|---|---|---|---|---|
scale | enum | 'none' | Image scaling policy | ||
width | number | string | 300 | Image width | |
height | number | string | 150 | Image height | |
src | string | null | Image src string | ||
alt | string | 'NO IMAGE' | Alt test | ||
spinnerTheme | string | ApSpinner.DEFAULT_THEME | Them of spinner | ||
onLoad | func | null | Handler on image load | ||
onError | func | null | Handler on image error. |
License
This software is released under the MIT License.
Links
4.1.5
9 years ago
4.1.4
9 years ago
4.1.3
9 years ago
4.1.2
9 years ago
4.1.1
9 years ago
4.1.0
9 years ago
4.0.4
9 years ago
4.0.3
9 years ago
4.0.2
9 years ago
4.0.1
9 years ago
4.0.0
9 years ago
3.0.17
9 years ago
3.0.16
9 years ago
3.0.15
9 years ago
3.0.14
9 years ago
3.0.13
9 years ago
3.0.12
9 years ago
3.0.11
9 years ago
3.0.10
9 years ago
3.0.9
9 years ago
3.0.8
9 years ago
3.0.7
9 years ago
3.0.6
9 years ago
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.1.16
9 years ago
2.1.15
9 years ago
2.1.14
9 years ago
2.1.13
9 years ago
2.1.12
9 years ago
2.1.11
9 years ago
2.1.10
9 years ago
2.1.9
9 years ago
2.1.8
9 years ago
2.1.7
10 years ago
2.1.6
10 years ago
2.1.5
10 years ago
2.1.4
10 years ago
2.1.3
10 years ago
2.1.2
10 years ago
2.1.1
10 years ago
2.1.0
10 years ago
2.0.0
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago