Similar to the RelateScript formatter.

Hierarchy

Constructors

Methods

  • Parameters

    • obj: any

    Returns string

  • Used in place of the normal format() method due to a Graal bug. Will produce a formatted string using the formatter and an array of strings

    Parameters

    • formatValues: any[]

    Returns string

    Example

    const myFormat = B.text.messageFormat('<{0}></{0}>');
    const divTag = myFormat.formatArray(['div']);// Returns '<div></div>'
  • Parses text from the beginning of the given string to produce an object array.

    Parameters

    • sourceStr: string

    Returns any[]

  • Parses text from a string to produce an object array.

    Parameters

    • source: string

    Returns any

Generated using TypeDoc