apeman-react-grid

3.0.3 • Public • Published

apeman-react-grid

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for grid display.

Installation

$ npm install apeman-react-grid --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

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.

Links

Package Sidebar

Install

npm i apeman-react-grid

Weekly Downloads

4

Version

3.0.3

License

MIT

Last publish

Collaborators

  • okunishinishi