gridstack-profile
Version:
TypeScript/JS lib for dashboard layout and creation, responsive, mobile support, no external dependencies, with many wrappers (React, Angular, Vue, Ember, knockout...)
33 lines (29 loc) • 859 B
text/typescript
/**
* gridstack.component.ts 8.2.1-dev
* Copyright (c) 2022 Alain Dumesny - see GridStack root license
*/
import { NgModule } from "@angular/core";
import { CommonModule } from '@angular/common';
import { GridStack } from "gridstack";
import { GridstackComponent, gsCreateNgComponents, gsSaveAdditionalNgInfo } from "./gridstack.component";
import { GridstackItemComponent } from "./gridstack-item.component";
({
imports: [
CommonModule,
],
declarations: [
GridstackComponent,
GridstackItemComponent,
],
exports: [
GridstackComponent,
GridstackItemComponent,
],
})
export class GridstackModule {
constructor() {
// set globally our method to create the right widget type
GridStack.addRemoveCB = gsCreateNgComponents;
GridStack.saveCB = gsSaveAdditionalNgInfo;
}
}