0.0.4 • Published 6 years ago

mroads-popup v0.0.4

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

In your module include:

import { MroadsPopupModule } from 'mroads-popup';

@NgModule({
  imports: [
      MroadsPopupModule
  ],
  declarations: [
   ...
  ],
  providers: [
   ...
  ],
  bootstrap: [...]
})

In your template use as

<lib-popup [(showPopup)]="variable/to/display/or/hide/popup" [popupState]="variable/with/popup/state">

Popup state: Popup state is the current state of the popup which is represented using object(key-value) mapping. content - Text that will be displayed on the popup modelActions - Array of objects representing the data of each button. Each button will have action(on click), type(color), buttonText(text for button)

{
    'content': 'Popup content',
    'modelActions': [
        {
            'action': 'function/to/be/called',
            'type': 'orange/grey',
            'buttonText': 'button/text'
        }
    ]
}
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago