Merge pull request #8581 from surajshetty3416/table-check-all
feat: Add a function to check all rows
This commit is contained in:
commit
fc2fd476df
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue