Sfoglia il codice sorgente

feat: Add API to check all table rows

version-14
Suraj Shetty 5 anni fa
parent
commit
5bd5e02a30
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      frappe/public/js/frappe/form/controls/table.js

+ 3
- 0
frappe/public/js/frappe/form/controls/table.js Vedi 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();
}
});

Caricamento…
Annulla
Salva