Module: UWA/Embedded

UWA/Embedded

This module allow to render an UWA appplication into a frame without requiring full UWA Js Runtime loaded into main document.

Examples

Simple Example:

var MyWidget = new UWA.Embedded('http://example.com/apps/mywidget.html');

Example with offline capabilitie:

var MyWidget = new UWA.Embedded('http://example.com/apps/mywidget.html', {
    useAppCache: true,
    offlineMode: true
});

Example to handle title and preference update:

var MyWidget = new UWA.Embedded('http://example.com/apps/mywidget.html');
MyWidget.addCallback('setTitle', function(title) {
// setTitle called with value <title>
});

MyWidget.addCallback('setValue', function(name, value) {
// setValue called for key <name> with value <value>
});

Classes

UWA.Embedded