Skip to content

DataAdapter.getResourcePath method

DataAdapter › getResourcePath

Official

Returns a URI for the browser engine to use, for example to embed an image.

Signature:

getResourcePath(normalizedPath: string): string

Parameters:

ParameterTypeDescription
normalizedPathstringpath to file/folder, use {@link normalizePath} to normalize beforehand.

Returns: string

Example:

createEl('img', { attr: { src: adapter.getResourcePath('foo/bar.jpg') } });