Get Asset
element.getAsset()
Retrieve an asset from an Image element.
Syntax
Returns
Promise<Asset> | null
A Promise that resolves to an Asset. If an element doesn’t have an asset, the method will return null
Example
Designer Ability
Checks for authorization only