Bluestep JS Documentation
    Preparing search index...

    Class MessageFormat

    Similar to the RelateScript formatter.

    Hierarchy (View Summary)

    Index

    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

      const myFormat = B.text.messageFormat('<{0}></{0}>');
      const divTag = myFormat.formatArray(['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