Jam.py documentation

Changing default codeΒΆ

Let’s change the interface of the application. We will remove the dynamic menu that Default code creates, and change the code so that the Contacts journal will appear when a user opens the application in a web browser.

Select Task node in the project tree and click the Client module button:

Task client module

The Code editor appears displaying the task client module:

Dynamic menu code

In the on_page_loaded event handler, delete the code that creates the dynamic menu, and add the following line instead:

task.contacts.view($('#content'));
No dynamic menu

To see the result refresh the project page:

Contacts no menu