We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onCheck
1 parent 67bf0db commit b144261Copy full SHA for b144261
src/index.d.ts
@@ -12,6 +12,10 @@ declare module "react-checkbox-tree" {
12
title?: string;
13
}
14
15
+ interface OnCheckNode extends Node {
16
+ checked: boolean;
17
+ }
18
+
19
interface Icons {
20
check?: React.ReactNode;
21
uncheck?: React.ReactNode;
@@ -53,7 +57,7 @@ declare module "react-checkbox-tree" {
53
57
showExpandAll?: boolean;
54
58
showNodeIcon?: boolean;
55
59
showNodeTitles?: boolean;
56
- onCheck?: (checked: Array<string>) => void;
60
+ onCheck?: (checked: Array<string>, node: OnCheckNode) => void;
61
onClick?: (event: { checked: boolean, value: any }) => void;
62
onExpand?: (expanded: Array<string>) => void;
63
0 commit comments