contextMenu.item.directive.d.ts 872 B

123456789101112131415161718192021222324252627
  1. import { Highlightable } from '@angular/cdk/a11y';
  2. import { ElementRef, EventEmitter, TemplateRef } from '@angular/core';
  3. export declare class ContextMenuItemDirective implements Highlightable {
  4. template: TemplateRef<{
  5. item: any;
  6. }>;
  7. elementRef: ElementRef;
  8. subMenu: any;
  9. divider: boolean;
  10. enabled: boolean | ((item: any) => boolean);
  11. passive: boolean;
  12. visible: boolean | ((item: any) => boolean);
  13. execute: EventEmitter<{
  14. event: Event;
  15. item: any;
  16. }>;
  17. currentItem: any;
  18. isActive: boolean;
  19. readonly disabled: boolean;
  20. constructor(template: TemplateRef<{
  21. item: any;
  22. }>, elementRef: ElementRef);
  23. evaluateIfFunction(value: any, item: any): any;
  24. setActiveStyles(): void;
  25. setInactiveStyles(): void;
  26. triggerExecute(item: any, $event?: MouseEvent | KeyboardEvent): void;
  27. }