Jam.py documentation

view_form

view_form

domain: client

language: javascript

class Item class

Description

Use view_form attribute to get access to a Jquery object representing the view form of the item.

It is created by the view method.

The close_view_form method sets the view_form value to undefined.

Example

In the following example the button defined in the item html template is assigned a click event:

item.view_form.find("#new-btn").on('click',
    function() {
        item.insert_record();
    }
);