README
apeman-react-grid
apeman react package for grid display.
Installation
$ npm install apeman-react-grid --save
Demo
Live demo is hosted on GitHub Pages.
Usage
'use strict'
import React from 'react'
import {ApGrid, ApGridItem, ApGridStyle} from 'apeman-react-grid'
const ExampleComponent = React.createClass({
render () {
return (
<div>
<ApGridStyle></ApGridStyle>
<ApGrid>
<ApGridItem text="foo"></ApGridItem>
<ApGridItem text="bar"></ApGridItem>
<ApGridItem text="baz"></ApGridItem>
</ApGrid>
</div>
)
}
})
Components
ApGridItem
Props
Name | Type | Default | Description |
---|---|---|---|
title | string | null | |
text | string | null | |
width | number | null | |
height | number | null | |
selected | bool | false |
ApGridStyle
Props
Name | Type | Default | Description |
---|---|---|---|
style | object | {} | |
itemSize | number | 82 | |
highlightColor | string | ApStyle.DEFAULT_HIGHLIGHT_COLOR | |
detailColor | '#444' | ||
backgroundColor | ApStyle.DEFAULT_BACKGROUND_COLOR |
ApGrid
Props
Name | Type | Default | Description |
---|---|---|---|
selectedIndex | number | -1 | |
detail | node | null | |
animationDuration | number | 300 |
License
This software is released under the MIT License.