Set Asset
element.setAsset(asset)
Add an asset to an Image element.
Syntax
Parameters
- Asset: Asset - The asset to be inserted into the Image Element. Can be retrieved with the method
webflow.getAssetById
Returns
Promise<null
>
A Promise that resolves to null