2017-09-20 15:49:06 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import {NgModule} from '@angular/core';
|
|
|
|
|
import {CommonModule} from '@angular/common';
|
2017-09-28 13:45:03 -07:00
|
|
|
import {MatCommonModule} from '@angular/material/core';
|
2017-09-20 15:49:06 -07:00
|
|
|
import {OverlayModule} from '@angular/cdk/overlay';
|
2017-09-28 13:45:03 -07:00
|
|
|
import {MatMenu, MAT_MENU_DEFAULT_OPTIONS} from './menu-directive';
|
|
|
|
|
import {MatMenuItem} from './menu-item';
|
|
|
|
|
import {MatMenuTrigger, MAT_MENU_SCROLL_STRATEGY_PROVIDER} from './menu-trigger';
|
|
|
|
|
import {MatRippleModule} from '@angular/material/core';
|
2017-09-20 15:49:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
|
|
|
|
OverlayModule,
|
|
|
|
|
CommonModule,
|
2017-09-28 13:45:03 -07:00
|
|
|
MatRippleModule,
|
|
|
|
|
MatCommonModule,
|
2017-09-20 15:49:06 -07:00
|
|
|
],
|
2017-09-28 13:45:03 -07:00
|
|
|
exports: [MatMenu, MatMenuItem, MatMenuTrigger, MatCommonModule],
|
|
|
|
|
declarations: [MatMenu, MatMenuItem, MatMenuTrigger],
|
2017-09-20 15:49:06 -07:00
|
|
|
providers: [
|
2017-09-28 13:45:03 -07:00
|
|
|
MAT_MENU_SCROLL_STRATEGY_PROVIDER,
|
2017-09-20 15:49:06 -07:00
|
|
|
{
|
2017-09-28 13:45:03 -07:00
|
|
|
provide: MAT_MENU_DEFAULT_OPTIONS,
|
2017-09-20 15:49:06 -07:00
|
|
|
useValue: {
|
|
|
|
|
overlapTrigger: true,
|
|
|
|
|
xPosition: 'after',
|
|
|
|
|
yPosition: 'below',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
})
|
2017-09-28 13:45:03 -07:00
|
|
|
export class MatMenuModule {}
|