react-inline-edit-input
1.0.14 • Public • Published React Inline Edit
Usage
<InlineEdit
value={fish.name}
tag="p"
type="text"
saveLabel="Gravar"
cancelLabel="Cancelar"
onSave={value => props.updateFish(fish.id, { name: value })}
/>
Properties
Name |
Type |
Default |
Description |
updateOnNewProps |
boolean |
false |
Props will only be updated if this is set to true |
format |
function |
null |
Formats the value according to the function supplied |
value |
string |
'' |
initial input value |
tag |
string |
'span' |
|
type |
string |
'text' |
|
onSave |
string |
null |
|
updateOnNewProps |
string |
false |
|
saveColor |
string |
'blue' |
|
saveLabel |
string |
'Save' |
|
cancelColor |
string |
'red' |
|
cancelLabel |
string |
'Cancel' |
|
minDate |
string |
'' |
|
maxDate |
string |
'' |
|
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.14 | 0 | latest |
Version History
Package Sidebar
Install
npm i react-inline-edit-input
Weekly Downloads