Jam.py documentation

each_filter

each_filter(function(filter))

domain: client

language: javascript

class Item class

Description

Use each_filter method to iterate over filters owned by an item.

The each_filter() method specifies a function to run for each filter (the current filter is passed as a parameter).

You can break the each_filter loop at a particular iteration by making the callback function return false.

Example

function customer_filters(customers) {
    customers.each_filter(function(f) {
        console.log(f.filter_caption, f.value);
    });
}

Filters

Filter class