event-objects.d.ts 924 B

123456789101112
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. /** Creates a browser MouseEvent with the specified options. */
  6. export declare function createMouseEvent(type: string, x?: number, y?: number, button?: number): MouseEvent;
  7. /** Creates a browser TouchEvent with the specified pointer coordinates. */
  8. export declare function createTouchEvent(type: string, pageX?: number, pageY?: number): UIEvent;
  9. /** Dispatches a keydown event from an element. */
  10. export declare function createKeyboardEvent(type: string, keyCode: number, target?: Element, key?: string, ctrlKey?: boolean, metaKey?: boolean, shiftKey?: boolean): KeyboardEvent;
  11. /** Creates a fake event object with any desired event type. */
  12. export declare function createFakeEvent(type: string, canBubble?: boolean, cancelable?: boolean): Event;