Skip to content

Class: NgxAwesomePopupModule

Boris Jenicek edited this page Dec 20, 2021 · 4 revisions

Class: NgxAwesomePopupModule

This is the main module of the library, it is crucial to be added within angular.app imports as an example with optional argument, look: IGlobalUserConfig Style your application by adding a color list like in this example.

// app.module imports:
NgxAwesomePopupModule.forRoot({
    colorList: {
           primary  : '#ff9e00', // optional
           secondary: '#989ea5', // optional
           info     : '#2f8ee5', // optional
           success  : '#3caea3', // optional
           warning  : '#ffc107', // optional
           danger   : '#e46464', // optional
           light    : '#fbfbfb', // optional
           dark     : '#343a40'  // optional
          }
})

Constructors

constructor

+ new NgxAwesomePopupModule(injector: Injector): NgxAwesomePopupModule

Parameters:

Name Type
injector Injector

Returns: NgxAwesomePopupModule

Methods

forRoot

StaticforRoot(globalConfig?: IGlobalUserConfig): ModuleWithProviders<NgxAwesomePopupModule>

Parameters:

Name Type
globalConfig? IGlobalUserConfig

Returns: ModuleWithProviders<NgxAwesomePopupModule>

Clone this wiki locally