3.0.2 • Published 7 years ago

apeman-react-list v3.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

apeman-react-list

Build Status Code Climate Code Coverage npm Version JS Standard

apeman react package for list component.

Installation

$ npm install apeman-react-list --save

Demo

Live demo is hosted on GitHub Pages.

Demo Image

Usage

'use strict'

import React from 'react'
import {
  ApList,
  ApListItem,
  ApListItemText,
  ApListItemArrowIcon,
  ApListStyle
} from 'apeman-react-list'

const ExampleComponent = React.createClass({
  render () {
    const s = this
    return (
      <div>
        <ApListStyle />
        <ApList>
          <ApListItem onTap={ (e) => { s.handleTap(e, 1) } }>
            <ApListItemText>Item 01</ApListItemText>
            <ApListItemArrowIcon />
          </ApListItem>
          <ApListItem onTap={ (e) => { s.handleTap(e, 2) } }>
            <ApListItemText>Item 02</ApListItemText>
            <ApListItemArrowIcon />
          </ApListItem>
        </ApList>
      </div>
    )
  },
  handleTap () {

  }
})

Components

ApListBarMessage

Props

NameTypeDefaultDescription

ApListBar

Props

NameTypeDefaultDescription

ApListBody

Props

NameTypeDefaultDescription

ApListFooter

Props

NameTypeDefaultDescription
spinningboolfalseShow spinner
spinnerstringApSpinner.DEFAULT_THEMESpinner theme

ApListHeader

Props

NameTypeDefaultDescription

ApListItemArrowIcon

Props

NameTypeDefaultDescription
directionenum'right'

ApListItemIcon

Props

NameTypeDefaultDescription

ApListItemImage

Props

NameTypeDefaultDescription
srcstringnull
altstringnull
scaleenum'fill'
widthnumberstringnull
heightnumberstringnull

ApListItemText

Props

NameTypeDefaultDescription

ApListItem

Props

NameTypeDefaultDescription

ApListMoreButton

Props

NameTypeDefaultDescription
textstring'Load More'
enabledboolfalse

ApListStyle

Props

NameTypeDefaultDescription

ApList

Props

NameTypeDefaultDescription
spinningboolfalseShows spin
spinnerstringApSpinner.DEFAULT_THEMETheme of spinner
minHeightnumbernullMin height of list
emptyboolfalseMark as empty
altstring'Not data found'Alt text to show when empty

License

This software is released under the MIT License.

Links

3.0.2

7 years ago

3.0.1

7 years ago

2.0.17

7 years ago

2.0.16

7 years ago

2.0.15

8 years ago

2.0.14

8 years ago

2.0.13

8 years ago

2.0.12

8 years ago

2.0.11

8 years ago

2.0.10

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.7

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.5.7

8 years ago

1.5.6

8 years ago

1.5.5

8 years ago

1.5.4

8 years ago

1.5.3

8 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.5

8 years ago

1.3.4

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago