JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q26904F
  • License GPL-3.0

Angular Material Elements

Package Exports

  • @attus/elements

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@attus/elements) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Elements

This library was generated with Angular CLI version 11.0.5.

GitHub release

In module.ts

import {AttusElementsModule} from '@attus/elements';

@NgModule({
  imports: [
    AttusElementsModule,
  ],
})

Login Popup

import {MatDialog} from '@angular/material/dialog';
import {AttusElementsLoginDialogComponent} from '@attus/elements';
this.dialog.open(AttusElementsLoginDialogComponent).afterClosed().subscribe((response: any) => {
  console.debug(response.username, response.password);
});

Simple Confirm Dialog

import {AttusElementsConfirmDialogComponent, ConfirmQuestion} from '@attus/elements';

const data: ConfirmQuestion = {
  question: 'Are you sure about it?',
  hint: 'It\'s your last chance to change your mind',     // Optional
  cancel: 'Nooo',                                         // Optional, Default: Cancel
  ok: 'Yes, sure',                                        // Optional, Default: OK
};
this.dialog.open(AttusConfirmDialogComponent, {
  width: '480px',
  data: data,
}).afterClosed().subscribe(result => {
  if (result === '1') {
    doSomethingConfirmed();
  }
});

Angular Material Floating Action Button

A Floating Action Button. An extension for Angular Material Buttons

<button attus-fab-button color="accent" (click)="doSomething()">
  <mat-icon>add</mat-icon> Add New Element
</button>