Merge pull request #36665 from rohitwaghchaure/set-lable-dynamically-for-section

feat: set label dynamically for the section
This commit is contained in:
rohitwaghchaure 2026-02-04 08:13:42 +05:30 committed by GitHub
commit af12ba99cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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");
}