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): stringParameters:
| Parameter | Type | Description |
|---|---|---|
| normalizedPath | string | path to file/folder, use {@link normalizePath} to normalize beforehand. |
Returns: string
Example:
createEl('img', { attr: { src: adapter.getResourcePath('foo/bar.jpg') } });