GitHub

DaffMenuService

import { DaffMenuService } from '@daffodil/design/menu'

@Injectable()
class DaffMenuService {
  protected _overlay: OverlayRef
  open$: Observable<boolean> = this.$_open.asObservable()
  protected overlay: Overlay

  protected _createOverlay(
    activatorElement: ViewContainerRef
    component: DaffMenuSlot
  ): Promise<void>
  protected _destroyOverlay(): void
  close(): void
  open(
    activator: ViewContainerRef
    component: DaffMenuSlot
  ): void
}

() Methods

_createOverlay
Promise<void>
Parameters
ParameteractivatorElement: ViewContainerRef
Description
Parametercomponent: DaffMenuSlot
Description
_destroyOverlay
void
close
void
open
void
Parameters
Parameteractivator: ViewContainerRef
Description
Parametercomponent: DaffMenuSlot
Description