WALLET CONFIGURATION
To include wallet link to mobile landing following changes are to be done in file at ../channel/components/home/mobile-landing/mobile-landing.js:
1. Register wallet component
Params.baseModel.registerComponent("wallet-signup", "signup");
2. Add wallet component in quick-links
self.quickLinks.push({
txt: self.nls.quickLinks.labels.wallet,
icon: "wallet/wallet-money.svg",
link: "wallet"
});
3. To load component on click add following code.
if (data.link === "wallet") {
Params.dashboard.loadComponent("wallet-signup", {});
}
To include wallet widget in browser landing page following changes are to be done:
1. In file at ../channel/components/widgets/pre-login/product-home/product-home.html add entry of wallet component as follows:
<wallet params="baseModel : $baseModel, rootModel : $data, dashboard: $dashboard"></wallet>
2. In file at ../channel/components/widgets/pre-login/product-home/product-home.js register the component.
Params.baseModel.registerComponent("wallet", "home");
3. Add wallet component in UIAuthorization.json of widgets at path ../channel/components/widgets/META-INF/UIAuthorization.json.
In entry of wigdetName: Product A product is created based on the bank's business requirements and has certain typical parameters that describe its attributes or characteristics. Every product is defined under Product Class and Product Group.
For example, a product 'Fixed rate home loan' is defined under product group 'Home Loan' and product class 'Loans'. Home, add #wallet#product-header-text to requiredUI
Dashboard changes to include wallet account summary in Net Worth Graph make changes at path
..\channel\components\widgets\dashboard\net-worth-graph\net-worth-graph.js
Push value in the array self.pieSeriesValueForCredit as mentioned.
{
name: self.resource.labels.wallet,
items: [summary.WalletAmount],
color: "#0000FF"
}