getPresentationURL()

This method returns the base URL of the Presentation Resources folder of the project, in which a custom control is defined.

For example, if a project contains myimage.gif located at project/Presentation Resources/images, you can compute the URL of this image using:

var mypath = component.getPresentationURL() + "/images/myimage.gif";

Method Return Value:

  • The base URL without a trailing path separator