{ "windows": [ { "name": "ImageExample", "title": "Image Example", "left": 500, "top": 100, "width": 400, "height": 300, "controls": [ { "name": "userIcon", "type": "image", "alternateText": "User Icon", "width": 64, "height": 64, "bindsTo": "imageUri" }, { "name": "OKButton", "type": "button", "text": "OK", "isDialogButton": true, "dialogResult": "OK" }, { "name": "CancelButton", "type": "button", "text": "Cancel", "isDialogButton": true, "dialogResult": "Cancel" } ] } ] }
var userData = { imageUri: "/demo/resources/user-admin.png" };
var exampleWindow = redui.createNewWindow("ImageExample"); exampleWindow.bind(userData); exampleWindow.show();