Jam.py documentation

edit_form

edit_form

domain: client

language: javascript

class Item class

Description

Use edit_form attribute to get access to a Jquery object representing the edit form of the item.

It is created by the create_edit_form method.

The close_edit_form method sets the edit_form value to undefined.

Example

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

item.edit_form.find("#ok-btn").on('click.task',
    function() {
        item.apply_record();
    }
);