ItemListCard
Installation
import {ItemListCard} from 'uxp/components';Examples
<ItemListCard
title="System"
item={{
"hvac": {
"value": 250,
"percentage": 15
},
"lighting": {
"value": 250,
"percentage": 15
},
"elevators": {
"value": 250,
"percentage": 15
},
"fire alarm": {
"value": 250,
"percentage": 15
}
}}
renderSubTitle={() => {
return (<div className="sample-subtitle">Savings (AED)</div>)
}}
fields={["hvac", "lighting", "elevators", "fire alarm"]}
renderField={(item, field, key) => {
return (<div className="sample-item-field" key={key}>
<div className="label">{field.toUpperCase()}</div>
<div className="value">
<div className="amount">{item[field].value}</div>
<div className="percentage">{item[field].percentage}%</div>
</div>
</div>)
}}
backgroundColor="rgb(209 148 250)"
/>Properties
Name
Type
Description
title
type
renderSubTitle
type
item
type
fields
type
renderField
type
backgroundColor
type
className
type
Last updated