0.0.7-bacfdedda4525a1b0956000c4204333eff0ac86b • Published 2 years ago

@ev-uk/risk-rating-quick-tool v0.0.7-bacfdedda4525a1b0956000c4204333eff0ac86b

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

EValue widget: Risk Rating Quick Tool

Contents

Description

@ev-uk/risk-rating-quick-tool is an EValue widget that can be added to an existing website

Install

The widget can be installed by running one of the following commands

npm i @ev-uk/risk-rating-quick-tool
yarn add @ev-uk/risk-rating-quick-tool

Usage

The widget can be imported into a TypeScript project as follows:

import type { TConfig, TRiskRatingQuickToolProps } from '@ev-uk/risk-rating-quick-tool';
import { RiskRatingQuickToolWidget } from '@ev-uk/risk-rating-quick-tool';

const config: TConfig = {
  accessToken: '<ACCESS_TOKEN>',
  apiUrl: '<API_URL>',
  ...other parameters...
}

const props: TRiskRatingQuickToolProps = {
  config
}

export const App = () => {
  return (
    RiskRatingQuickToolWidget(props)
  )
}

Parameters

NameTypeRequiredEffectsDescription
accessTokenstringAPIAuthenticates requests to the API
apiUrlstringAPIThe url address to send API requests to
wordsColorstringWidgetColour of the widget text. Valid HTML color codes. For example "#FF5733"
symbolsColorstringWidgetColour of the widget icons. Valid HTML color codes. For example "#FF5733"
titlestringWidgetWidget title, default value "Fund risk ratings"
objectiveInputstringWidgetObjective input label, default value "Objective"
benchmarkInputstringWidgetRisk benchmark input label, default value "Risk benchmark"
riskInputstringWidgetRisk level input label, default value "Risk level"
termInputstringWidgetTerm input label, default value "Investment term"
fundManagerInputstringWidgetFund manager group dropdown label, default value "Fund manager group"
fundNameInputstringWidgetFund name label text field label, default value "Fund name"
calculateButtonstringWidgetSearch button text, default value "Search"
filterSearchButtonstringWidgetText of the button to open filters in the mobile version, default value "Filter search"
tableFooterstringWidgetTable footer text, default value "Rows per page"
tableDefaultWordingstringWidgetText is displayed until the search is performed, default value "Set your parameters and search for the relevant funds"
objectiveInfoHeaderstringWidget"Objective" modal window title, default value "Objective"
dataLevelInfoHeaderstringWidget"Data level" modal window title, default value "Data Quality"