CodeEdit Widget
Description
The CodeEditWidget allows for the display and editing of JSON
data with built-in validation.
Example
<raw type="CodeEditWidget" action="codeEditAction">
<content variable="rawContent" />
</raw>
json rawContent;
void init() {
rawContent = /%{
"data": {
"nestedData": "We have data!"
}
}%/;
}
DSL_VIEWS codeEditAction(json codeResponse) {
rawContent = codeResponse;
return null;
}
, multiple selections available,