search-client
Version:
Javascript library for executing searches in the Haive search-index via the SearchManager REST interface.
21 lines • 883 B
JavaScript
/**
* The Filter interface defines what information is held for a chosen category as a filter.
*/
var Filter = /** @class */ (function () {
/**
* Creates a Filter instance, holding the displayName and a copy of the original Category (excluding category.children).
*
* @param displayName Holds an array of all displayNames for the path to this category.
* @param category A copy/reference to the actual category selected (from what was received in the categorize call).
* @param hidden Whether or not the filter should be included in the category tree.
*/
function Filter(displayName, category, hidden) {
if (hidden === void 0) { hidden = false; }
this.displayName = displayName;
this.category = category;
this.hidden = hidden;
}
return Filter;
}());
export { Filter };
//# sourceMappingURL=Filter.js.map