Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValueConverter

An interface which defines methods need to create binding value converter.

Hierarchy

  • ValueConverter

Index

Properties

Properties

toModel

toModel: function

A method that will be executed when a value (of the binding property) should be converted to the observable model. For example: user types in a text field, but our business logic requires to store data in a different manner (e.g. in lower case).

param

An array of parameters where first element is the value of the property and next elements are parameters send to converter.

Type declaration

    • (...params: any[]): any
    • Parameters

      • Rest ...params: any[]

      Returns any

toView

toView: function

A method that will be executed when a value should be converted to the UI view. For example we have a date object which should be displayed to the end user in a specific date format.

param

An array of parameters where first element is the value of the property and next elements are parameters send to converter.

Type declaration

    • (...params: any[]): any
    • Parameters

      • Rest ...params: any[]

      Returns any

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method