0.1.14 • Published 6 years ago

@nju33/react-editable-input v0.1.14

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

react-editable-input

@nju33/react-editable-input style: styled-components lerna code style: prettier

Install

yarn add @nju33/react-editable-input

Usage

e.g.

import {EditableInput, EditableInputType} from '@nju33/react-masonry';

// ...

  render() {
    return (
      <EditableInput
        type={EditableInputType.Text}
        value={this.state.value}
        onCompleteBefore={done => {
          // ... something processing

          // you'd have errors. you should return `done` that have error message.
          // done('error');

          // If you've no error, which should return with success message like
          done(null, 'save');
        }}

      >
      </EditableInput>
    )
  }

Type

  • Text
    wip

  • Password
    wip

  • Number
    wip

  • Email
    wip

  • Textarea
    wip

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago