projectToCardModel
Convert a project entity into a card view model that can be consumed by the suite of hub gallery components
Convert a project entity into a card view model that can be consumed by the suite of hub gallery components
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
project Required | IHubProject |
project entity |
|
context Required | IArcGISContext |
auth & portal information |
|
opts Optional | IConvertToCardModelOpts |
view model options |
Returns
Property | Type | Notes |
---|---|---|
Optional | AccessLevel | |
Optional | ICardActionLink[] | |
Optional | IInfoConfig[] | |
Optional | IBadgeConfig[] | |
Optional | string | |
Optional | string | |
Optional | number | |
Optional | string | |
Optional | string | |
Optional | string | |
Optional | string | |
Optional | string | |
Optional | string |
Function defined in common/src/projects/view.ts:24