Legacy Product

Fusion 5.10
    Fusion 5.10

    hasFilter

    Description

    Returns the first filter object from the query or facet that matches the name and optionally the value also

    Usage

    In HTML Template Binding

    {{ hasFilter_expression | hasFilter:field[:value] }}

    In JavaScript

    $filter('hasFilter')(query, field[, value])

    Parameters

    ParamTypeDetails
    querystring

    The query object

    fieldnumber

    The name of the filter

    value
    (optional)
    number

    The value of the filter