jsharmony-tutorials
Version:
jsHarmony Tutorials
10 lines • 513 B
JSON
{
"layout":"exec",
"caption": "API Validation",
"onecolumn": true,
"fields": [
{ "control": "textbox", "name": "message", "caption": "Message", "default": "Hello" },
{ "control": "textbox", "name": "delay", "caption": "Delay (ms)", "default": 1000 },
{ "control": "button", "name": "invoke", "value": "Invoke API Call", "onclick": "XForm.Post(xmodel.id, {}, { message: xmodel.get('message'), delay: xmodel.get('delay') }, function(rslt){ XExt.Alert(JSON.stringify(rslt)); });" }
]
}