3.0.6 • Published 9 years ago
apeman-react-album v3.0.6
apeman-react-album
apeman react package for album components.
Installation
$ npm install apeman-react-album --saveDemo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {ApAlbum, ApAlbumStyle} from 'apeman-react-album'
const ExampleComponent = React.createClass({
render () {
return (
<div>
<ApAlbumStyle />
<ApAlbum width={ 180 }
images={ [
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/02.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/03.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/04.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/05.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/06.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/07.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/08.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/09.jpg",
"https://raw.githubusercontent.com/apeman-asset-labo/apeman-asset-images/master/dist/dummy/10.jpg"
] }/>
</div>
)
}
})Components
ApAlbumImage
Props
| Name | Type | Default | Description |
|---|
ApAlbumStyle
Props
| Name | Type | Default | Description | |
|---|---|---|---|---|
| style | object | {} | ||
| highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | ||
| backgroundColor | ApStyle.DEFAULT_BACKGROUND_COLOR |
ApAlbum
Props
| Name | Type | Default | Description | ||
|---|---|---|---|---|---|
| images | array | [] | Image source URLs | ||
| thumbnailSize | number | 48 | Size of thumbnail image | ||
| leftIcon | string | 'fa fa-caret-left' | Icon for left pager button | ||
| rightIcon | string | 'fa fa-caret-right' | Icon for right pager button | ||
| scale | string | 'fill' | Image scale policy | ||
| width | number | string | '420px' | Component width | |
| height | number | string | '360px' | Component height | |
| id | `ap-album-${uuid.v4()}` |
License
This software is released under the MIT License.
Links
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.0.11
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
10 years ago
2.0.3
10 years ago
2.0.2
10 years ago
2.0.1
10 years ago
2.0.0
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.2
10 years ago