• NOTE: This is LEGACY in version 5.1, use ES6 class/extends and registerClass instead

    Inherits a control to a new one. Such a newly created class also contains $super field. This is because JavaScript does not include native inheritance. For a brief on inheritance, there are many helpful resources online about object-oriented programming. Here is one.

    Parameters

    • className: string

      name of the new class

    • parent: any

      parent class to inherit from

    • methods: MethodsDict

      List of all methods, use 'initialize' as a constructor

    • Optional properties: GetterSetterDict

      List of all properties

    Returns void

    Example

    inheritClass('ListView', Control, {
    initialize: function () {},
    anotherMethod: function (param) {}
    }, {
    aProperty: {
    get: function () {return _value;},
    set: function (value) {value = _value;}
    }
    });

    Method

    inheritClass

    For

    Window