Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Latest commit

 

History

History
37 lines (23 loc) · 1.32 KB

README.md

File metadata and controls

37 lines (23 loc) · 1.32 KB

hawtio-dashboard

Circle CI

Live Demo

View Demo

About

This module contains the dashboard widget for hawtio v2.

Out of the box the backend used to store dashboards is in browser local storage. However it's easily possible to override this storage method with any other backend, for example:

  var _module = angular.module('MyThing', []);
  _module.config(['$provide', function($provide) {

    // Inject the 'DefaultDashboards' service to get a handle on any default dashboard configs
    // that plugins register
    $provide.decorator('dashboardRepository', ['$delegate', 'DefaultDashboards', function($delegate, defaults) {
      var myDashboard = {
        // implement the DashboardRepository interface here
      }
      return myDashboard

    }]);
  }]);

The interface that the dashboardRepository service needs to implement is defined here

Working on the code

Have a look at the hawtio 2.x overview document under "Getting Started" specifically.