From 1ea299b8dfa044cd02dc41975816f72e75eb6ee6 Mon Sep 17 00:00:00 2001 From: sokumon Date: Fri, 3 Jan 2025 19:10:14 +0530 Subject: [PATCH] feat: add divider to button group --- frappe/public/js/frappe/ui/page.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/ui/page.js b/frappe/public/js/frappe/ui/page.js index 8c53111bbd..0b9795f521 100644 --- a/frappe/public/js/frappe/ui/page.js +++ b/frappe/public/js/frappe/ui/page.js @@ -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); + $('').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