• Example

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

    const folder = 'showpad://folder/1' // Or you can also just pass '1' as a string

    const assets = await Showpad.getAssetsInFolder(folder)

    Parameters

    • folder: string

      The last part of the folder app link, eg. xyz2250 in showpad://folder/xyz2250. Also accepts the folder app link for convenience (See example code).

      You can assign folders through the Experience App Editor.

    Returns Promise<Asset[]>

    List of assets that can be found in the given folder. This will not work recursively and will only return actual assets. So it does not return values from deeper levels nor will it return folders.

Generated using TypeDoc