Skip to content

Commit 160ca8a

Browse files
committed
description for textKey & valueKey
1 parent 338424f commit 160ca8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/js/advance/edit-type-table.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const jobTypes = [ {
2222
value: 'D',
2323
text: 'TYPE_D'
2424
} ];
25+
// For above example, you can also use textKey and valueKey to change the hard code key for 'text' and 'value'
26+
// for example, editable={ { type: 'select', options: { values: jobTypes, textKey: 'customTextKey , valueKey: 'customValueKey'} } }
2527

2628
function addJobs(quantity) {
2729
const startId = jobs.length;

0 commit comments

Comments
 (0)