Skip to content

Commit 4b34f68

Browse files
committed
examples for #355
1 parent c2f8ce1 commit 4b34f68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/js/manipulation/del-row-custom-confirm.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ function addProducts(quantity) {
2121

2222
addProducts(5);
2323

24-
function customConfirm(next) {
25-
if (confirm('(It is a custom confirm function)Are you sure you want to delete?')) {
24+
function customConfirm(next, dropRowKeys) {
25+
const dropRowKeysStr = dropRowKeys.join(',');
26+
if (confirm(`(It's a custom confirm)Are you sure you want to delete ${dropRowKeysStr}?`)) {
2627
// If the confirmation is true, call the function that
2728
// continues the deletion of the record.
2829
next();

0 commit comments

Comments
 (0)