2
0
mirror of https://github.com/frappe/books.git synced 2025-04-03 00:31:51 +00:00
books/frappe/client/view/index.js
2018-01-09 19:10:56 +05:30

20 lines
384 B
JavaScript

const frappe = require('frappe-core');
module.exports = {
init({container, main, sidebar}) {
frappe.container = container;
if (sidebar) {
frappe.sidebar = sidebar;
} else {
frappe.sidebar = frappe.ui.add('div', 'sidebar', frappe.container);
}
if (main) {
frappe.main = main;
} else {
frappe.main = frappe.ui.add('div', 'main', frappe.container);
}
},
}