9.0.4 • Published 3 years ago

ng-dialog-animation v9.0.4

Weekly downloads
1,252
License
ISC
Repository
github
Last release
3 years ago

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" }
    }
}
9.0.4

3 years ago

9.0.3

4 years ago

9.0.2

4 years ago

9.0.1

4 years ago

9.0.0

4 years ago

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago