Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Control.prototype.createStringControl = function (name, label, isVisible, isDisabled, attribute) {
var stringControl = new XrmMock.StringControlMock(
new XrmMock.AutoLookupControlMock(
new XrmMock.StandardControlMock({
control: createControl(name, label, isVisible),
attribute: attribute,
disabled: isDisabled,
uiStandardElement: Ui.createStandardElement(label, isVisible)
}),
new XrmMock.UiKeyPressableMock()
)
);
addControl(stringControl);
};