ngx-edu-sharing-ui
TypeScript icon, indicating that this package has built-in type declarations

9999.0.4 • Public • Published

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";

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-edu-sharing-ui

Weekly Downloads

61

Version

9999.0.4

License

GNU GPL v2

Unpacked Size

2.71 MB

Total Files

225

Last publish

Collaborators

  • edu-sharing.net