templateToCardModel

Function

Convert a template entity into a card view model that can be consumed by the suite of hub gallery components

Convert a template entity into a card view model that can be consumed by the suite of hub gallery components

Parameters

Parameter Type Default Notes
template Required IHubTemplate

template entity

context Required IArcGISContext

auth & portal information

opts Optional IConvertToCardModelOpts

view model options

Returns

Property Type Notes
access Optional AccessLevel
additionalInfo Optional IInfoConfig[]
badges Optional IBadgeConfig[]
family Optional string
id Optional string
index Optional number
source Optional string
summary Optional string
thumbnailUrl Optional string
title Optional string
titleUrl Optional string
type Optional string

Function defined in common/src/templates/view.ts:25