Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Filter

Hierarchy

Index

Constructors

constructor

  • new Filter(options: Record<string, string>, initial?: string[], multi?: boolean, joinOp?: "OR" | "AND"): Filter
  • Parameters

    • options: Record<string, string>
    • Default value initial: string[] = []
    • Default value multi: boolean = false
    • Default value joinOp: "OR" | "AND" = "OR"

    Returns Filter

Properties

Private active

active: string[]

Private joinOp

joinOp: "OR" | "AND"

Private multi

multi: boolean

Private options

options: Record<string, string | FilterFunc>

Methods

Protected emit

  • emit(event: string, ...data: any): void
  • Parameters

    • event: string
    • Rest ...data: any

    Returns void

filter

  • filter(): string
  • Returns string

get

  • get(): string[]
  • Returns string[]

getOptions

isActive

  • isActive(key: string): boolean
  • Parameters

    • key: string

    Returns boolean

on

set

  • set(key: string, active?: boolean): void
  • Parameters

    • key: string
    • Default value active: boolean = true

    Returns void

updateOptions

  • Parameters

    Returns void

Generated using TypeDoc