feat: add divider to button group
This commit is contained in:
parent
20bde77953
commit
1ea299b8df
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue