Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

hub-dashboard-addons

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hub-dashboard-addons

A library that provides Hub dashboard API for creating custom widgets

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
0
Created
Source

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');
    }
  });
});

Keywords

Hub

FAQs

Package last updated on 30 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts