UNPKG

@lyonfinancial/loan-calculator

Version:
37 lines 1.34 kB
/** Configuration options for the loan calculator */ interface LoanCalculatorConfig { /** Lyon ID for tracking */ lid: string; /** URL path for user redirection */ urlPath: string; /** Whether to show the heading section */ showHeading: boolean; /** Specific version of the nvq-loan-calculator to load */ version: string; /** Specific template to use */ template: "pool" | "outdoor-project" | "steel-building" | "deck" | "landscape"; } /** Loads a loan calculator component. */ declare class LoanCalculator { private componentUrl; private readonly selector; private showHeading; private config; /** Creates a new instance of the loader. */ constructor(selector: string); /** @deprecated Use load() with LoanCalculatorConfig instead. */ load(lid: string, urlPath: string, showHeading: boolean, version: string): void; /** Loads the loan calculator with the given configuration. */ load(config: LoanCalculatorConfig): void; private getHeading; private getExamples; private getInnerHtml; private getMonthlyPaymentHeader; private getMonthlyPaymentDisclaimer; private getMonthlyPaymentFooter; private getUrl; private getDisclaimer; private getDisclaimerInnerHtml; private injectStyles; } //# sourceMappingURL=loader.d.ts.map