AssetReference

constructor(module: AssetModuleId, assetType: AssetType, href: String, type: String? = null, inline: Boolean = false, preload: Boolean = false)

Parameters

module

ID of the asset module being referenced.

assetType

Type of asset being referenced.

href

Relative link to serve the asset.

type

Type override for the tag, if applicable.

inline

Whether this asset is eligible to be inlined into the page.

preload

Whether this asset is eligible to be preloaded.