Skip to main content

Interface: AssetPreviewRequest<TAssetValue, TThemeValue, TFeedType>

Type used to pass the asset, theme and other configuration details to the preview modal.

For usage, see enplug.dashboard.previewAsset().

Type parameters#

NameDescription
TAssetValueModel of asset's value
TThemeValueModel of theme's value (optional)
TFeedTypeModel of the feed (used for social apps)

Properties#

asset#

asset: Asset<TAssetValue>

Asset which is to be displayed in the preview modal


feedData#

Optional feedData: FeedData<TFeedType>

Feed data - used for social apps.


layout#

Optional layout: Layout

Customize the preview layout by, for example, providing the initial orientation of the preview.


sizingConfig#

Optional sizingConfig: SizingConfig

Limits the maximal pixel size of the preview.


theme#

Optional theme: ThemeAsset<TThemeValue>

Theme applied to the asset.

If your app uses themes, pass the theme here. It will be passed to the app, when it calls enplug.assets.getTheme().