0.1.14 • Published 6 years ago
@nju33/react-editable-input v0.1.14
react-editable-input
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
wipPassword
wipNumber
wipEmail
wipTextarea
wip