pui.normalizeURL( url )
This function returns a normalized URL based on the pui.serverURL configuration setting. Â It is typically used with URL paths to image resources that are packaged with your Apache Cordova application. Â If pui.serverURL is defined, it is prepended to the url parameter, so that the image can be accessed on the server; otherwise, the original url paramater is returned.
Parameters:
url - the url address of an image file or some other resource
Example:
The following can be used on the "image source" property.
js: pui.normalizeURL("/profoundui/proddata/images/icons/view.png")
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!