Merge pull request #36665 from rohitwaghchaure/set-lable-dynamically-for-section
feat: set label dynamically for the section
This commit is contained in:
commit
af12ba99cf
1 changed files with 4 additions and 0 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue