Jam.py documentation

How can I implement a search for a new groupΒΆ

By default, every new group have the div with “default-view” class as its view form template , that is declared in the index.html file.

You can have for a new group the same view template as for catalogs, just by adding the name-view class to the catalogs view template

For example, The new group have “imports” item_name. Then catalogs and imports groups will have the same view template:

<div class="catalogs-view import-view">

</div>

The initialization of search is implemeted in the on_view_form_created event handler in the client module of the catalogs group. You can copy the same code to the client module of your new group or just add the following code:

function on_view_form_created(item) {
    item.task.catalogs.on_view_form_created(item);
}