1.1.4 • Published 7 years ago

inline-edit v1.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

#Inline Edit React component Component displays value, but when clicked opens the value in text box for editing. Suports format and value validation. Depends on bootstrap.css

#!javascript
import InlineEdit, {intParser, floatParser, emailParser, genericParser} from "./index";
<InlineEdit value="10.00" valueParser={floatParser} displayModeClassName="btn btn-success"
	onChange={(value)=>console.log("new int value is: " + value)}
		displayFormat={(value)=>numeral(value).format("0,0.00")}/>
React.render(widget, document.getElementById("container"));

You can click Demo html page here to see example in action.

For sample code take a look at Demo sample. Basically, component has 2 modes 'display' in which values is only displayed (can be also formatted), and edit, when value can be edited in textbox.

It is also possible to style the component in both modes by providing displayModeClassName and editModeClassName

1.1.4

7 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.7

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago