1.0.10 • Published 8 years ago

react-image-select-zjs v1.0.10

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

react-image-select-zjs

A component to select image and preview when use react in a form

Install

npm install -S 'react-image-select-zjs';

Usage

  import ImageSelect from 'react-image-select-zjs';
  
  ...
  onChange = (files) => {
    ...
  }
  onError = (errorMsg) => {
    ...
  }
  render(){
    return (
      ...
      <ImageSelect 
        onChange={this.onChange} 
        onError={this.onError} 
        name="fieldName"
        label="+"
        labelSize={80}
        max={9} />
      ...
    )
  }
  ...

Properties

  • onChange(files)
  • onError(errorMsg)
  • label : select button text , default is '+'
  • labelSize : select button text size, default is 80
  • max : the maximum number of files, default is 9
1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago