Thinfinity.VirtualUI
Description
A JavaScript pseudo-class that provides a one-line-of-code user interface remoting solution for in-house developed applications, enabling delivery as dual Windows/HTML5 applications.
Features
- Full web integration using the JavaScript Remote Objects (jsRO) framework
- Bidirectional data integration between application and browser
- Instant GUI remoting with complete web integration
Syntax
var virtualUI = new Thinfinity.VirtualUI();
Return Value
Returns a Thinfinity.VirtualUI object instance.
Arguments
None required.
Events
| Event | Description |
|---|---|
| onLoading | Fires when client and server are connected |
| onShow | Fires when the web-app is ready to be shown |
| onClose | Fires when the application is closed |
| onError | Fires when an error occurs |
Properties
| Property | Type | Description |
|---|---|---|
| devMode | Boolean | Retrieves information about the current development mode |
Members
| Type | Link |
|---|---|
| Properties | Properties |
| Events | Events |
Example
var virtualUI = new Thinfinity.VirtualUI();
virtualUI.onLoading = function() {
console.log('Client and server connected');
};
virtualUI.onShow = function() {
console.log('Application is ready to be displayed');
};
virtualUI.onClose = function() {
console.log('Application closed');
};
virtualUI.onError = function(message) {
console.error('Error: ' + message);
};
if (virtualUI.devMode) {
console.log('Running in development mode');
}