Browse Source

feat: Add API to check all table rows

version-14
Suraj Shetty 5 years ago
parent
commit
5bd5e02a30
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      frappe/public/js/frappe/form/controls/table.js

+ 3
- 0
frappe/public/js/frappe/form/controls/table.js View File

@@ -102,5 +102,8 @@ frappe.ui.form.ControlTable = frappe.ui.form.Control.extend({
},
validate: function() {
return this.get_value();
},
check_all_rows() {
this.$wrapper.find('.grid-row-check')[0].click();
}
});

Loading…
Cancel
Save