Merge pull request #8581 from surajshetty3416/table-check-all

feat: Add a function to check all rows
This commit is contained in:
mergify[bot] 2019-10-09 21:35:42 +00:00 committed by GitHub
commit fc2fd476df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}
});