Skip to content

Commit

Permalink
description for #380
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Apr 1, 2016
1 parent 61b60d1 commit 31d9ac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/js/cell-edit/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class Demo extends React.Component {
<div className='panel-heading'>A Non Editable Cell Example&nbsp;(Product Name can not be edited)</div>
<div className='panel-body'>
<h5>Source in /examples/js/cell-edit/non-editable-table.js</h5>
<span>
BTW, if you set editable to true, which field will be non editable also when insert.<br/>
so if you want to make field editable when insert, you can set ignoreEditable to true in options prop.<br/>
</span>
<NonEditableTable />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/js/cell-edit/non-editable-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const cellEditProp = {
export default class NonEditableTable extends React.Component {
render() {
return (
<BootstrapTable data={ products } cellEdit={ cellEditProp }>
<BootstrapTable data={ products } cellEdit={ cellEditProp } insertRow={ true }>
<TableHeaderColumn dataField='id' isKey={ true }>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField='name' editable={ false }>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn>
Expand Down

0 comments on commit 31d9ac7

Please sign in to comment.