YouTrack Server
 
2019.2
Get YouTrack Standalone
You are viewing the documentation for an earlier version of YouTrack Server. View this page in the current documentation

Custom Widgets API Reference

Last modified: 17 December 2019

We provide a custom library for JavaScript that includes an API for working with custom widgets. To install this library, use one of the following implementations:

  • Add a reference to the dashboard script on unpkg in the header of your index.html file. Wrap the reference inside a <script> tag. For example:

    <script src="https://unpkg.com/hub-dashboard-addons@latest"></script>

  • Use the npm package manager to install the script with the npm install hub-dashboard-addons command. You can then add references to the script in your widget any way you want.

The Dashboard.registerWidget function accepts a callback that is called with the dashboardAPI and registerWidgetAPI parameters as shown in the following code sample. To view this sample in context, refer to the Create the Script.

Use the following reference to build custom widgets for your dashboards.