Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5ac058c

Browse files
patch story for add cell.onStartEdit(#514)
1 parent ac38d2f commit 5ac058c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎packages/react-bootstrap-table2-example/examples/cell-edit/cell-edit-hooks-table.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const columns = [{
4141
columns={ columns }
4242
cellEdit={ cellEditFactory({
4343
mode: 'click',
44+
onStartEdit: (row, column, rowIndex, columnIndex) => { console.log('start to edit!!!'); },
4445
beforeSaveCell: (oldValue, newValue, row, column) => { console.log('Before Saving Cell!!'); },
4546
afterSaveCell: (oldValue, newValue, row, column) => { console.log('After Saving Cell!!'); }
4647
}) }
@@ -55,6 +56,7 @@ export default () => (
5556
columns={ columns }
5657
cellEdit={ cellEditFactory({
5758
mode: 'click',
59+
onStartEdit: (row, column, rowIndex, columnIndex) => { console.log('Start to edit!!!'); },
5860
beforeSaveCell: (oldValue, newValue, row, column) => { console.log('Before Saving Cell!!'); },
5961
afterSaveCell: (oldValue, newValue, row, column) => { console.log('After Saving Cell!!'); }
6062
}) }

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /