1.0.10 • Published 10 years ago

react-image-select-zjs v1.0.10

Weekly downloads
4
License
ISC
Repository
github
Last release
10 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

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago