How to use the xrm-mock.ControlMock function in xrm-mock

To help you get started, we’ve selected a few xrm-mock examples, based on popular ways it is used in public projects.

github camelCaseDave / xrm-mock-generator / src / xrm-mock-generator / control.js View on Github external
var createControl = function (name, label, isVisible, controlType) {
        var control = new XrmMock.ControlMock({
            name: name,
            controlType: controlType,
            uiLabelElement: Ui.createLabelElement(label),
            uiCanGetVisibleElement: Ui.createCanGetVisibleElement(isVisible)            
        });
    };