Uxopian Software documentation is now centralized on a single site. Find the up-to-date documentation for our products on doc.uxopian.com.

IFrameOffMenu

OffMenu displaying an IFrame.

IFrame OffMenus allow you to add an IFrame to the menu.

To instantiate an IFrameOffMenu, you need to provide it with the url of the IFrame to be built:

var menu = new IFrameOffMenu("MenuTitle", url);
JSAPI.get().addOffMenu(menu);

A callback can be provided to this method to react to the loading of the IFrame:

var menu = new IFrameOffMenu("MenuTitle", url, window => { 
	console.info("The IFrame has been loaded");
 });
JSAPI.get().addOffMenu(menu);