title |
public |
string |
'' |
Title of the card |
|
subtitle |
public |
string |
'' |
Subtitle of the card, shown above the title if present |
|
href |
public |
string |
'' |
When present, clicking the card will route to this string |
|
images |
public |
array |
[] |
Array of image urls, only the first image will be shown |
|
loading |
public |
boolean |
false |
Show the loading state |
|
buttonText |
public |
string |
'' |
When present, a button is shown at the buttom of the card |
|
currency |
public |
string |
'' |
When present, a currency is shown next to the price |
|
currencySymbol |
public |
string |
'$' |
The symbol to show before price string. Only used when price is set. |
|
currencyFormat |
public |
string |
'0,0[.]00' |
The format string to display the price in, see <a href="http://numeraljs.com" target="_blank">numeraljs.com</a> for a full list of options |
|
darkMode |
public |
string |
'disabled' |
The theme of the card, valid options are `disabled`, `auto` & `active`. The auto strategy uses the `prefers-color-scheme` media feature under the hood, it will not listen for color changes when set to auto |
|
autoFetch |
public |
boolean |
false |
When true, autofetch data from the MPC API and apply it. See `autoFetchConfig` for more info. |
|
autoFetchConfig |
public |
object |
{} |
Auto fetch data for the card when required params are supplied<br/>
`{`<br/>
`entityId,`<br/>
`entityType,`<br/>
`marketplaceId,`<br/>
`marketplaceBaseUrl,`<br/>
`apiKey,`<br/>
`apiBaseUrl,`<br/>
`}`
<br/><br/>
`entityType` options are `listing` |
|
target |
public |
|
|
Tells the browser where to open the link. Only used when href is set. |
|
price |
public |
|
|
When present, a price is shown. Formatted by numeral.js |
|