How to know that module view is loaded completely

I am trying to catch the point when a new module page is loaded.

frappe/frappe/public/js/frappe/views/module/moduleview.js has render function that asks page.js to create page but how to get when frappe.page and other methods of frappe.views.moduleview.ModuleView are done with creating a view of module.

@rmehta

@ZainSajjad Can you share your code.

ERPNext is GNU GPL and we would like to prefer helping those who intend in contributing back.

2 Likes

I want to insert a diagram at the bottom of the module page. Tried to study how it is created but couldn’t find the end point where the DOM is properly ready and i can get the element $(‘.layout-main’) and insert my HTML into it. I tried to do it from frappe.views.moduleview.ModuleView.make method but it doesn’t work. :frowning:

Yes i will contribute back surely :slight_smile:

The best way is to create a new Page altogether. Hacking the moduleview may not be a sustainable strategy (no path to upgrade)