2.1.1 • Published 6 years ago

ngx-heyl-modal v2.1.1

Weekly downloads
22
License
-
Repository
-
Last release
6 years ago

ngx-heyl-modal

This package allows you to use a modal window in AngularX (2+) projects.

Please don't hesitate to ask for new features or report a bug on Github! Thanks

Summary

Updates

  • 10 Jun. 2018
    • Re-created library with Angular 6
    • Fix closeButton not working
    • Review CSS
    • Removed ModalConfig class

1. Features

  • Modal component
    • Easily usable
    • Minimal CSS to be easily customizable
    • Fade animation from top, bottom, left and right

2. Wiki

2.1 Inputs & Functions

@Input()Default valueDescription
size"70%"Width of the modal
fadeModalFade.BOTTOMPosition from where the modal fade : "top" / "bottom" / "left" / "right"
closeButtontrueDisplay or not the × button in the header

ModalComponent's functions available :

functionsDescription
show([callback])Show the modal, and call the callback if not undefined
hide([callback])Hide the modal, and call the callback if not undefined

3. How to use

  1. Install npm module :

    npm i ngx-heyl-module

  2. Import the module :

    Open your app.module.ts file and import the module :

    import { ModalModule } from "ngx-heyl-modal";
    @NgModule({
       imports: [ 
          ...,
          ModalModule
       ]
    })
  3. Use <modal> component :

    Declare a modal in an html file

    <modal #modal fade="top" size="50%">
       <div class="modal-header">
          This is my header
       </div>
       <div class="modal-body">
          Here you can type some long text and html
       </div>
       <div class="modal-footer">
          <button (click)="modal.hide()">Close</button>
       </div>
    </modal>
2.1.1

6 years ago

2.1.0

6 years ago

2.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.3.0

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago