☝️Small business or a startup? See if you qualify for our special offer.
+
All documentation

getFilter

getFilter(uniqueName: String): FilterObject

[starting from version: 1.4]

Returns the FilterObject for the specified field.

Parameters

Parameter/TypeDescription
uniqueName
String
The field's unique name.

Returns

FilterObject that contains filtering information.

Note The FilterObject is null if the field contains one member and only the filter.members, filter.exclude, or filter.include filter is defined.

Example

pivot.setFilter("Country", 
{
"members": [
"country.[poland]",
"country.[uk]",
"country.[ukraine]",
]
}
);
pivot.getFilter("Country");

/*
method getFilter() returns the following object:
{
"members": [
"country.[poland]",
"country.[uk]",
"country.[ukraine]",
]
}
*/

Try the example on JSFiddle.

See also

clearFilter
setFilter