@progress/kendo-react-common
Version:
React Common package delivers common utilities that can be used with the KendoReact UI components. KendoReact Common Utilities package
21 lines (20 loc) • 1.09 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2023 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------*/
import * as React from 'react';
export interface KendoMouse<T, E extends HTMLElement> {
onMouseDown?: (args: KendoMouseEvent<T, E>) => void;
onMouseUp?: (args: KendoMouseEvent<T, E>) => void;
onClick?: (args: KendoMouseEvent<T, E>) => void;
onDoubleClick?: (args: KendoMouseEvent<T, E>) => void;
onMouseEnter?: (args: KendoMouseEvent<T, E>) => void;
onMouseLeave?: (args: KendoMouseEvent<T, E>) => void;
onMouseMove?: (args: KendoMouseEvent<T, E>) => void;
onMouseOut?: (args: KendoMouseEvent<T, E>) => void;
onMouseOver?: (args: KendoMouseEvent<T, E>) => void;
}
export interface KendoMouseEvent<T, E extends HTMLElement = HTMLElement> {
syntheticEvent: React.MouseEvent<E>;
target: T;
}