iFrameworkOverrides.d.ts 1.2 KB

123456789101112131415
  1. export interface IFrameworkOverrides {
  2. /** Because Angular 2+ uses Zones, you should not use setTimeout(). So to get around this, we allow the framework
  3. * to specify how to execute setTimeout. The default is to just call the browser setTimeout(). */
  4. setTimeout(action: any, timeout?: any): void;
  5. /** Again because Angular uses Zones, we allow adding some events outside of Zone JS so that we do not kick off
  6. * the Angular change detection. We do this for some events ONLY, and not all events, just events that get fired
  7. * a lot (eg mouse move), but we need to make sure in ag-Grid that we do NOT call any grid callbacks while processing
  8. * these events, as we will be outside of ZoneJS and hence Angular2 Change Detection won't work. However it's fine
  9. * for our code to result in ag-Grid events (and Angular application action on these) as these go through
  10. * Event Emitter's.
  11. *
  12. * This was done by Niall and Sean. The problematic events are mouseover, mouseout, mouseenter and mouseleave.
  13. */
  14. addEventListenerOutsideAngular(element: HTMLElement, type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
  15. }