Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SelectFacet

Class representing select-like facet.

Hierarchy

Index

Constructors

Properties

_sfsApi: undefined | SfsApi

This property is set by SfsApi class if it is passed to it on construction. _sfsApi is used to construct this facet's queries and to access event stream. Without setting this property, this facet cannot function properly.

id: string
isFetching: boolean = false

True if this facet is currently fetching options.

labelPredicates: string[]
optionCountVariable: string
optionLabelVariable: string
optionValueVariable: string
options: FacetOption[]

Current facet options.

predicate: string

Accessors

  • get value(): undefined | Value
  • set value(newValue: undefined | Value): void

Methods

  • buildOptionsQuery(): Query
  • Abstract method for building query used for fetching this facet options from current state. State of SfsApi should be accounted too. This method is implemented in individual facet types.

    Returns Query

    options query

  • getFacetConstraints(): undefined | Pattern[]
  • isActive(): boolean

Generated using TypeDoc