Options
All
  • Public
  • Public/Protected
  • All
Menu

Implement this interface if you want to add your own custom operator to use with this library.

Hierarchy

  • CustomOperator

Index

Methods

convertToRSQLString

  • convertToRSQLString(value: string | Array<string | number | boolean> | Date | number | boolean | undefined | null, valueString: string, shouldQuote: boolean): string
  • Should return a string that represents the operation and value. Ex: '=customOperator="abc"'. The field name will already be prepended to the string before this method gets called.

    Parameters

    • value: string | Array<string | number | boolean> | Date | number | boolean | undefined | null

      Original value that is passed into the RSQL Filter Expression

    • valueString: string

      Formatted value that the library uses internally. This has dates, arrays, booleans, etc in the format that the library uses.

    • shouldQuote: boolean

      Boolean passed down to say if this value should be surrounded by quotes.

    Returns string

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Private property
  • Private method

Generated using TypeDoc