hub-dashboard-addons
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

hub-dashboard-addons official JetBrains project

A library that provides Hub dashboard API for creating custom widgets.

Installation

NPM

  • npm install hub-dashboard-addons

CDN

    <!-- Optional: default styles of dashboard widgets -->
    <link rel="stylesheet" type="text/css" href="https://unpkg.com/hub-dashboard-addons@latest/dashboard.css">
    <!-- Include dashboard connector from CDN -->
    <script src="https://unpkg.com/hub-dashboard-addons@latest"></script>

USAGE

// Would be just window.DashboardAddons if included from CDN
import DashboardAddons from 'hub-dashboard-addons';
// Optional, if use webpack with css-loader
import 'hub-dashboard-addons/dashboard.css';

DashboardAddons.registerWidget((dashboardApi, registerWidgetApi) => {
  registerWidgetApi({
    onRefresh: () => {
      console.log('refresh');
      dashboardApi.setTitle('Refreshed');
    }
  });
});

Readme

Keywords

Package Sidebar

Install

npm i hub-dashboard-addons

Weekly Downloads

300

Version

1.1.0

License

Apache-2.0

Unpacked Size

38.6 kB

Total Files

11

Last publish

Collaborators

  • princed
  • huston007
  • jetbrains-buildserver