• Programmatically open the asset viewer with the passed asset.

    Example

    import { Showpad } from '@showpad/experience-app-sdk'

    const assetSlug = '648b2eb8-6fa1-40f2-b787-39cb1d51db69'

    await Showpad.openAssetViewer(assetSlug)

    Parameters

    • assetSlug: string
    • useModal: boolean = true

      Open a file in modal mode. This means it will be opened on top of the current context, so closing the file brings you back to the original context. The default value is true.

    Returns void

Generated using TypeDoc