dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_DropdownModule cluster_DropdownModule_declarations cluster_DropdownModule_imports cluster_DropdownModule_exports DataTableBodyComponent DataTableBodyComponent DropdownModule DropdownModule DataTableBodyComponent->DropdownModule DataTableColGroupComponent DataTableColGroupComponent DataTableColGroupComponent->DropdownModule DataTableColumnComponent DataTableColumnComponent DataTableColumnComponent->DropdownModule DataTableColumnFilterHeaderComponent DataTableColumnFilterHeaderComponent DataTableColumnFilterHeaderComponent->DropdownModule DataTableColumnFilterTemplateComponent DataTableColumnFilterTemplateComponent DataTableColumnFilterTemplateComponent->DropdownModule DataTableColumnSelectorComponent DataTableColumnSelectorComponent DataTableColumnSelectorComponent->DropdownModule DataTableColumnTitleHeaderComponent DataTableColumnTitleHeaderComponent DataTableColumnTitleHeaderComponent->DropdownModule DataTableComponent DataTableComponent DataTableComponent->DropdownModule DataTableHeadComponent DataTableHeadComponent DataTableHeadComponent->DropdownModule DataTableHeaderComponent DataTableHeaderComponent DataTableHeaderComponent->DropdownModule DataTableLoadingSpinnerComponent DataTableLoadingSpinnerComponent DataTableLoadingSpinnerComponent->DropdownModule DataTableNoDataBodyComponent DataTableNoDataBodyComponent DataTableNoDataBodyComponent->DropdownModule DataTablePaginationComponent DataTablePaginationComponent DataTablePaginationComponent->DropdownModule DropdownComponent DropdownComponent DropdownModule->DropdownComponent UtilityModule UtilityModule UtilityModule->DropdownModule

File

projects/ornamentum/src/dropdown/dropdown.module.ts

Description

Module representing dropdown component.

Methods

Static forRoot
forRoot(dropdownConfig?: DropdownConfig)

Set module root configuration overrides.

Parameters :
Name Type Optional Description
dropdownConfig DropdownConfig Yes

Dropdown configuration object.

Module with custom providers.

import { ModuleWithProviders, NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';

import { DropdownConfig } from './models/dropdown-config.model';

import { DropdownComponent } from './components/dropdown/dropdown.component';
import { DropdownViewComponent } from './components/dropdown-view/dropdown-view.component';
import { DropdownFilterComponent } from './components/dropdown-filter/dropdown-filter.component';
import { DropdownOptionsComponent } from './components/dropdown-options/dropdown-options.component';

import { DROPDOWN_CONFIG } from './services/dropdown-config.service';

import { UtilityModule } from '../utility/utility.module';

const COMPONENTS = [DropdownComponent, DropdownViewComponent, DropdownFilterComponent, DropdownOptionsComponent];

/**
 * Module representing dropdown component.
 */
@NgModule({
  imports: [CommonModule, FormsModule, UtilityModule.forRoot()],
  declarations: [...COMPONENTS],
  exports: [DropdownComponent],
  entryComponents: [DropdownViewComponent]
})
export class DropdownModule {
  /**
   * Set module root configuration overrides.
   * @param dropdownConfig Dropdown configuration object.
   * @return Module with custom providers.
   */
  static forRoot(dropdownConfig?: DropdownConfig): ModuleWithProviders {
    return {
      ngModule: DropdownModule,
      providers: [
        {
          provide: DROPDOWN_CONFIG,
          useValue: dropdownConfig
        }
      ]
    };
  }
}

export { DropdownTranslations } from './models/dropdown-translations.model';
export { DropdownOption } from './models/dropdown-option.model';
export { DropdownRequestParams } from './models/dropdown-request-params.model';
export { DropdownFilter } from './models/dropdown-filter.model';
export { DropdownDataBindCallback } from './models/dropdown-data-bind-callback.model';
export { DropdownQueryResult } from './models/dropdown-query-result.model';
export { DropdownConfig } from './models/dropdown-config.model';

export { DropdownSelectMode } from './models/dropdown-select-mode.model';

export { DropdownComponent } from './components/dropdown/dropdown.component';

result-matching ""

    No results matching ""