9.0.2 • Published 6 months ago

ngx-edu-sharing-ui v9.0.2

Weekly downloads
-
License
GNU GPL v2
Repository
-
Last release
6 months ago

EduSharingUi

This library bundles base ui components from edu-sharing.

This library was generated with Angular CLI version 13.3.0.

Required Init tasks

Your project must provide a Toast service (for message viewing). You may use a mat-snackbar for displaying.

in your app.module.ts:

import { Toast as ToastAbstract } from 'ngx-edu-sharing-ui';
providers: [
    { provide: ToastAbstract, useClass: Toast },
    // ...
];

Make sure that your Toast-Service extends the abstract Toast service.

You might also provide other services for extended functionality, including Toast, OptionsHelperService, KeyboardShortcutsService, AppService.

Check out our sample angular application for a full example Check the app.module.ts for registration.

In one of your primary components (i.e. router) you need to initalize the material theme and translations:

async ngOnInit() {
  this.materialCssVarsService.setPrimaryColor('#2e9e9b');
  this.materialCssVarsService.setAccentColor('#2e9e9b');
  await this.translationsService.initialize().toPromise()
}

In your scss, make sure to include the global variables via @import "node-modules/ngx-edu-sharing-ui/assets/scss/variables";

9.0.2

6 months ago

9.0.1

6 months ago

9.0.0

6 months ago

0.7.0

7 months ago