feat: add divider to button group

This commit is contained in:
sokumon 2025-01-03 19:10:14 +05:30
parent 20bde77953
commit 1ea299b8df

View file

@ -636,7 +636,10 @@ frappe.ui.Page = class Page {
});
}
}
add_divider_to_button_group(group) {
var $group = this.get_or_add_inner_group_button(group);
$('<li class="dropdown-divider"></li>').appendTo($group.find(".dropdown-menu"));
}
/*
* Add button to button group. If there exists another button with the same label,
* `add_inner_button` will not add the new button to the button group even if the callback