Page History
...
Example of configuring a UI converter for a form element using the GlobalMethodConverter: This example shows the conversion of null values to '-' in the UI.
Defining the converter methods in globals.js:
Code Block |
---|
function nullToDash() {
var nr = arguments[0];
if(nr == null)
return '-';
return nr;
}
function dashToNull() {
var nr = arguments[0];
if(nr == '-')
return null;
return nr;
} |
UI Converter from java code (plugin)
...
Overview
Content Tools
Activity