Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ViewInstance

An instance of a ViewFactory

Hierarchy

Index

Properties

lowerCase

lowerCase: function

Convert a string to lower case.

memberof

ViewCallbacks

param
returns

The string in lower case.

Type declaration

    • (text: string): string
    • Parameters

      • text: string

      Returns string

sentenceCase

sentenceCase: function

Convert a string to sentence case.

memberof

ViewCallbacks

param
returns

The string in sentence case.

Type declaration

    • (text: string): string
    • Parameters

      • text: string

      Returns string

template

template: function

Type declaration

    • (fn: function): string
    • Parameters

      • fn: function
          • (__namedParameters: object): string
          • Parameters

            • __namedParameters: object
              • lowerCase: function
                  • (text: string): string
                  • Parameters

                    • text: string

                    Returns string

              • sentenceCase: function
                  • (text: string): string
                  • Parameters

                    • text: string

                    Returns string

              • upperCase: function
                  • (text: string): string
                  • Parameters

                    • text: string

                    Returns string

              • when: function
                  • (condition: any, truthy: string, falsy: string): string
                  • Parameters

                    • condition: any
                    • truthy: string
                    • falsy: string

                    Returns string

              • ws: function
                  • (quantity: number): string
                  • Parameters

                    • quantity: number

                    Returns string

            Returns string

      Returns string

upperCase

upperCase: function

Convert a string to upper case.

memberof

ViewCallbacks

param
returns

The string in upper case.

Type declaration

    • (text: string): string
    • Parameters

      • text: string

      Returns string

when

when: function

When the first parameter is truthy return second parameter, when it is falsy return the third parameter.

memberof

ViewCallbacks

param
param
param
returns

The second or third parameter.

Type declaration

    • (condition: any, truthy: string, falsy: string): string
    • Parameters

      • condition: any
      • truthy: string
      • falsy: string

      Returns string

ws

ws: function

Returns a number of whitespace characters

memberof

ViewCallbacks

param
returns

A string consisting of a number of whitespace characters.

Type declaration

    • (quantity: number): string
    • Parameters

      • quantity: number

      Returns string

Generated using TypeDoc