ASP.NET MVC Controls | ComponentOne
In This Topic
    Binding Class
    In This Topic
    File
    wijmo.js
    Module
    wijmo
    Derived Classes
    PivotFieldBinding

    Provides binding to complex properties (e.g. 'customer.address.city')

    Constructor

    Properties

    Methods

    Constructor

    constructor

    constructor(path: string): Binding
    

    Initializes a new instance of the Binding class.

    Parameters
    • path: string

      Name of the property to bind to.

    Returns
    Binding

    Properties

    path

    Gets or sets the path for the binding.

    In the simplest case, the path is the name of the property of the source object to use for the binding (e.g. 'street').

    Sub-properties of a property can be specified by a syntax similar to that used in JavaScript (e.g. 'address.street').

    Type
    string

    Methods

    getValue

    getValue(object: any): any
    

    Gets the binding value for a given object.

    If the object does not contain the property specified by the binding path, the method returns null.

    Parameters
    • object: any

      The object that contains the data to be retrieved.

    Returns
    any

    setValue

    setValue(object: any, value: any): boolean
    

    Sets the binding value on a given object.

    If the object does not contain the property specified by the binding path, the value is not set.

    Parameters
    • object: any

      The object that contains the data to be set.

    • value: any

      Data value to set.

    Returns
    boolean