Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iapps/d2-dashboard

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iapps/d2-dashboard

This library was generated with [Nx](https://nx.dev). DHIS2 Dashboard is angular library that support dashboard visualization both using default dashboard APIs or custom dashboard managed from datastore. It is intended to get incorporated in any DHIS2 ang

  • 1.0.9
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

DHIS2 Dashboard library

This library was generated with Nx. DHIS2 Dashboard is angular library that support dashboard visualization both using default dashboard APIs or custom dashboard managed from datastore. It is intended to get incorporated in any DHIS2 angular application where dashboard is to be one of application page

Installation

npm install @iapps/d2-dashboard

Usage

Import dashboard module in the root module of your application

import { D2DashboardModule } from '@iapps/d2-dashboard';

...
...

 @NgModule({
  declarations: [AppComponent],
  imports: [
    ...
    ...
    D2DashboardModule.forRoot({
      useDataStore: true,
      dataStoreNamespace: 'datastore-dashboard',
      rootUrl: 'dashboard',
      selectionConfig: {
        allowSelectionOnStartUp: false,
        startUpPeriodType: 'Monthly',
        periodConfig: { openFuturePeriods: 1, allowDateRangeSelection: false },
      },
    }),
    ...
  ],
  providers: [],
  bootstrap: [AppComponent],
})

export class AppModule {}

Then, you can use dashboard module as a lazy loaded route

 {
    path: 'dashboard',
    loadChildren: () =>
      import('@iapps/d2-dashboard').then((m) => m.D2DashboardModule),
  }

FAQs

Package last updated on 18 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc