ng-dialog-animation
TypeScript icon, indicating that this package has built-in type declarations

9.0.4 • Public • Published

NgDialogAnimation

This library using angular material dialog with animation, title, and rtl support.

options

  1. Title.
  2. Auto set diraction rtl when find dit='rtl'.
  3. position.rowEnd/position.rowStart.
  4. Animation -
    animation?:
        | {
              to: 'aside' | 'top' | 'bottom' | 'left' | 'right';
              incomingOptions?: { keyframes?: Keyframe[]; keyframeAnimationOptions: KeyframeAnimationOptions };
              outgoingOptions?: { keyframes?: Keyframe[]; keyframeAnimationOptions: KeyframeAnimationOptions }
          }
        | {
              to?: 'aside' | 'top' | 'bottom' | 'left' | 'right';
              incomingOptions?: { keyframes: Keyframe[]; keyframeAnimationOptions: KeyframeAnimationOptions };
              outgoingOptions?: { keyframes: Keyframe[]; keyframeAnimationOptions: KeyframeAnimationOptions };
          };

stackblitz playground

Get started

install

npm i ng-dialog-animation

add to providers

@NgModule({
//....
    providers: [
        NgDialogAnimationService,
    ],
})
//......

inject to your component

import { NgDialogAnimationService } from 'ng-dialog-animation';

export class SomeComponent {
  constructor(public dialog: NgDialogAnimationService) {
  }
}

now you can use it like material dialog with the extra things

  openDialog(): void {
    const dialogRef = this.dialog.open(DialogOverviewExampleDialog, {
      width: "250px",
      animation: { to: "aside" }
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i ng-dialog-animation

Weekly Downloads

1,998

Version

9.0.4

License

ISC

Unpacked Size

124 kB

Total Files

20

Last publish

Collaborators

  • yantrab