DocumentModel.error - SmartJSONEditor/PublicDocuments GitHub Wiki
Parameters
| # | Type | Description |
|---|---|---|
| 1 | String | Error text |
Return Value
None, Function will actively open console window and display error text.
Example
var ValueTransformer = function () {
this.displayName = "Token Transformer";
this.shortDescription = "Testing Log Function";
this.isEditingDisabled = false;
this.infoUrl = "https://github.com/SmartJSONEditor/PublicDocuments/wiki/Token-Value-Transformer";
this.parameters = function (config) {
if (config == null) {
return [];
}
// Construct your parameters
return [];
};
this.transform = function (inputValue, parameters, userInfo) {
if (inputValue == "") {
DocumentModel.error("no input value");
}
return inputValue;
};
}
function sjeClass() {
return new ValueTransformer();
}