-
Notifications
You must be signed in to change notification settings - Fork 7
DocumentModel.setUserParameterValue
SmartJSONEditor edited this page Jan 21, 2019
·
2 revisions
| # | Type | Description |
|---|---|---|
| 1 | String | parameter name |
| 2 | Any | parameter value to store |
None
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) {
DocumentModel.setUserParameterValue("cachedTextValue", "This is the value");
return inputValue;
};
}
function sjeClass() {
return new ValueTransformer();
}