Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ViewCallbacks

A callback function with bound helper functions

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

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