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

angular2-widgets-manager

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-widgets-manager

Angular2 dynamic components grid, based on widgets concept

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

angular2-widgets-manager

Angular2 dynamic components grid, based on widgets concept.

Usage

First, installation:

$ npm install angular2-widgets-manager

Now, in order to use it you will probably need to configure it as UMD (for SystemJS/Webpack). So don't forget to include the main file:

node_modules/angular2-widgets-manager/dist/main.js

Here's a code example to add it in your AppModule:

import { NgModule } from '@angular/core';
import { WidgetsManagerModule } from '../../src/main';
import { WidgetsManagerService } from '../../src/widgets-manager.service';

@NgModule({
  imports: [WidgetsManagerModule.forRoot()],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule {
  constructor() {
    // This line is important as it passes YOUR module, the one
    // from which the manager will get the widgets components
    WidgetsManagerService.provideWidgetsModule(WidgetComponentsModule.forRoot());
  }
}
<widgets-grid (onDragStart)="doSomethingOnDragStart($event)"
              [componentsDetails]="componentsDetails"
              [gridConfig]="gridConfig"></widgets-grid>

Configuration

Grid configuration

You can find NgGridConfig in angular2-grid

Widgets configuration - Component Details

interface ComponentDetails {
    id?: string | number;
    name: string;
    html: string;
    gridItemConfig: NgGridItemConfig;
}

You can find NgGridItemConfig in angular2-grid

Credits

Keywords

FAQs

Package last updated on 11 May 2017

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