Class MarkerMenu : isWebInterface Method


Boolean isWebInterface()

Summary

Determine if the menu is for the web interface.


Remarks

Allows marker scripts to determine whether they are currently displaying to the web interface and possibly show a different interface if they are.


Returns


Returns true if the menu if for the web interface, false otherwise.


Examples

Code taken from the Recommend To Forums marker. We only want to show this item on the main interface because it makes no sense to show it on the web interface.

template.onProgrammeMenuShow = function ( menu, marker, programme )
{
if( menu.isWebInterface() )
{
return;
}

menu.addSeparator();
menu.addItem( programme.getParsedInfo( "Recommend to DigiGuide Forums" ), "onOpenForumsURL" );
}


Requirements

Build 1059