Nightclub Party Music

    hub-dashboard-addons

    0.2.10 • Public • Published

    hub-dashboard-addons

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

    Install

    npm i hub-dashboard-addons

    DownloadsWeekly Downloads

    477

    Version

    0.2.10

    License

    Apache-2.0

    Unpacked Size

    197 kB

    Total Files

    11

    Last publish

    Collaborators

    • princed
    • huston007
    • jetbrains-buildserver