From 4b34f68b457c3920fc429ba1e46dc5a3e4cc066e Mon Sep 17 00:00:00 2001 From: AllenFang Date: Thu, 24 Mar 2016 23:20:10 +0800 Subject: [PATCH] examples for #355 --- examples/js/manipulation/del-row-custom-confirm.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/js/manipulation/del-row-custom-confirm.js b/examples/js/manipulation/del-row-custom-confirm.js index 594518ac2..e7d6216cb 100644 --- a/examples/js/manipulation/del-row-custom-confirm.js +++ b/examples/js/manipulation/del-row-custom-confirm.js @@ -21,8 +21,9 @@ function addProducts(quantity) { addProducts(5); -function customConfirm(next) { - if (confirm('(It is a custom confirm function)Are you sure you want to delete?')) { +function customConfirm(next, dropRowKeys) { + const dropRowKeysStr = dropRowKeys.join(','); + if (confirm(`(It's a custom confirm)Are you sure you want to delete ${dropRowKeysStr}?`)) { // If the confirmation is true, call the function that // continues the deletion of the record. next();