refactor: added deafult value for wrapper
This commit is contained in:
parent
2d26f3bcf5
commit
e4b7f33ed1
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ export default class WebForm extends frappe.ui.FieldGroup {
|
|||
intro_wrapper.innerHTML = intro;
|
||||
}
|
||||
|
||||
add_button(name, type, action, wrapper_class) {
|
||||
add_button(name, type, action, wrapper_class=".web-form-actions") {
|
||||
const button = document.createElement("button");
|
||||
button.classList.add("btn", "btn-" + type, "btn-sm", "ml-2");
|
||||
button.innerHTML = name;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue