fonteva-design-guide
Version:
## Dev, Build and Test
19 lines (15 loc) • 431 B
JavaScript
import { LightningElement, api, track } from 'lwc';
import "c/utils";
import {arrSum} from "c/utils";
export default class PfmOrderTotals extends LightningElement {
items;
totalLabel = 'Total';
currencyIsoCode;
total;
connectedCallback() {}
renderedCallback() {
if (this.items) {
this.total = arrSum(this.items,i => i.total);
}
}
}