diff --git a/frappe/public/js/frappe/form/section.js b/frappe/public/js/frappe/form/section.js index 5004afcb8a..6a32990b99 100644 --- a/frappe/public/js/frappe/form/section.js +++ b/frappe/public/js/frappe/form/section.js @@ -139,6 +139,10 @@ export default class Section { this.indicator && this.indicator.html(frappe.utils.icon(indicator_icon, "sm", "mb-1")); } + set_label(label) { + this.wrapper.find(".section-head").html(label); + } + is_collapsed() { return this.body.hasClass("hide"); }