Skip to main content

templates_ShoppableVideos_types.ShoppableVideosCustomisationProps

@shopify/shop-minis-platform-sdk / templates/ShoppableVideos/types / ShoppableVideosCustomisationProps

Interface: ShoppableVideosCustomisationProps<ItemType>

templates/ShoppableVideos/types.ShoppableVideosCustomisationProps

Type parameters

Name
ItemType

Hierarchy

Table of contents

Properties

Properties

onShopLoaded

Optional onShopLoaded: (shop: null | Shop) => void

Type declaration

▸ (shop): void

Parameters
NameType
shopnull | Shop
Returns

void


renderItem

Optional renderItem: (params: { currentIndex: number ; index: number ; item: ItemType }) => null | ReactElement<any, string | JSXElementConstructor<any>>

Type declaration

▸ (params): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters
NameType
paramsObject
params.currentIndexnumber
params.indexnumber
params.itemItemType
Returns

null | ReactElement<any, string | JSXElementConstructor<any>>


renderMedia

Optional renderMedia: (params: { isPlaying: boolean ; item: ItemType }) => null | ReactElement<any, string | JSXElementConstructor<any>>

Type declaration

▸ (params): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters
NameType
paramsObject
params.isPlayingboolean
params.itemItemType
Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from

ShoppableVideoCustomisationProps.renderMedia


renderMediaFooter

Optional renderMediaFooter: (params: { item: ItemType }) => null | ReactElement<any, string | JSXElementConstructor<any>>

Type declaration

▸ (params): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters
NameType
paramsObject
params.itemItemType
Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from

ShoppableVideoCustomisationProps.renderMediaFooter


renderMediaHeader

Optional renderMediaHeader: (params: { isMuted: boolean ; item: ItemType ; onMutePress: () => void ; storeInfo?: null | BaseShopFragmentData }) => null | ReactElement<any, string | JSXElementConstructor<any>>

Type declaration

▸ (params): null | ReactElement<any, string | JSXElementConstructor<any>>

Parameters
NameType
paramsObject
params.isMutedboolean
params.itemItemType
params.onMutePress() => void
params.storeInfo?null | BaseShopFragmentData
Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Inherited from

ShoppableVideoCustomisationProps.renderMediaHeader