How to use the ngx-sortablejs.SortablejsModule.forRoot function in ngx-sortablejs

To help you get started, we’ve selected a few ngx-sortablejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imolorhe / altair / src / app / app.module.ts View on Github external
// useFactory: () => new AppOverlayContainer()
  }
];

@NgModule({
  declarations: [
    AppComponent,
    WindowComponent,
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    FormsModule,
    HttpClientModule,
    SharedModule.forRoot(),
    SortablejsModule.forRoot({ animation: 150 }),
    ComponentModule,
    DocViewerModule,
    SchemaFormModule,
    SmartInputModule,
    DirectivesModule,
    StoreModule.forRoot(reducerToken, { metaReducers }),
    EffectsModule.forRoot([ QueryEffects, WindowsEffects, QueryCollectionEffects ]),
    StoreDevtoolsModule.instrument(),
    ToastrModule.forRoot({
      newestOnTop: false,
      closeButton: true,
      positionClass: 'toast-top-center',
      enableHtml: true,
    }),
    TranslateModule.forRoot({
      loader: {
github SortableJS / ngx-sortablejs / src / app / app.module.ts View on Github external
path: 'custom-options',
        component: SortableWithOptionsComponent,
      },
      {
        path: 'multiple-lists',
        component: MultipleListsComponent,
      },

      {
        path: 'tests/cross-components-multiple-list',
        component: CrossComponentsMultipleListsComponent,
      },
    ]),

    // global settings
    SortablejsModule.forRoot({
      animation: 200,
    }),

    BsDropdownModule.forRoot(),

    ExamplesModule,
    TestCasesModule,
  ],
  bootstrap: [AppComponent],
})
export class AppModule { }
github imolorhe / altair / src / app / components / window-switcher / window-switcher.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ WindowSwitcherComponent ],
      imports: [
        BrowserAnimationsModule,
        SharedModule,
        TranslateModule.forRoot(),
        SortablejsModule.forRoot({}),
        ContextMenuModule.forRoot()
      ]
    })
    .compileComponents();
  }));

ngx-sortablejs

MIT
Latest version published 4 years ago

Package Health Score

57 / 100
Full package analysis

Popular ngx-sortablejs functions