react-material-editlabel
React component for label edition on the fly. Label changes in material text field after click.
Example and more option description can be found - https://maciejsikora.github.io/react-material-editlabel/.
Installation
npm install react-material-editlabel --save
Dependencies
npm install material-ui --save
Import package ( ES6 )
;
Use in component
<EditLabel = = = = = />
Available props
EditLabelpropTypes = input:ReactPropTypesobject //TextField props label:ReactPropTypesobject //Label props initBy:ReactPropTypesnumberisRequired //init by click or dbl click id: ReactPropTypesnumberisRequired //id of component use defValue: ReactPropTypesstring //default value onEditEnd:ReactPropTypesfunc //calls on end of edit onChange: ReactPropTypesfunc//calls on every change onEnterClick: ReactPropTypesfunc//calls after enter click onEditStart:ReactPropTypesfunc//calls when edition starts material: ReactPropTypesbool //if true it uses TextField from material if false <input> clearEnable:ReactPropTypesbool //is possible to remove all text - clear it ;