Get Started
Plugins
Macros
More information

CBR

Description

Connects Fixer API for inserting the current and historical foreign exchange (forex) rates into the document.

Plugin type: non-visual, non-system.

Supported editors: spreadsheets.

CBR
Installation

Download this plugin from GitHub and install it following the desktop, on-premises, or cloud installation instructions.

Usage
  1. Select the cell.
  2. Open the Plugins tab and press cbr.
  3. The current and historical exchange rates will be inserted below, starting from the selected cell.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/sdkjs-plugins/tree/master/cbr.

  1. config.json, index.html and code.js
  2. Icons
  3. Third-party services:
    • jQuery - a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development (http://jquery.com/). License: MIT License.
    • jQuery UI - a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice (http://jqueryui.com/). License: MIT.
    • Fixer is a free API for current and historical foreign exchange rates published by the European Central Bank (https://fixer.io/). License: MIT License.
Config
{
    "name" : "cbr",
    "guid" : "asc.{5F9D4EB4-AF61-46EF-AE25-46C96E75E1DD}",

    "variations" : [
        {
            "description" : "cbr",
            "url"         : "index.html",

            "icons"           : ["resources/img/icon.png", "resources/img/icon@2x.png"],

            "isViewer"        : false,
            "EditorsSupport"  : ["cell"],

            "isVisual"        : false,
            "isModal"         : false,
            "isInsideMode"    : false,

            "initDataType"    : "none",
            "initData"        : "",

    "isUpdateOleOnResize" : false,

    "buttons" : []
        }
    ]
}
Methods and events

The main plugin code is located here.

Support

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.