MCPcopy
hub / github.com/brimdata/zui / onClick

Function onClick

apps/zui/src/components/icon-button.tsx:64–70  ·  view source on GitHub ↗
(e: MouseEvent<HTMLButtonElement>)

Source from the content-addressed store, hash-verified

62) {
63 // I think this needs to move into some core place
64 function onClick(e: MouseEvent<HTMLButtonElement>) {
65 if (props.onClick) {
66 props.onClick && props.onClick(e)
67 } else {
68 handleClick(props, e.currentTarget)
69 }
70 }
71
72 return (
73 <BG

Callers 1

clickFunction · 0.70

Calls 1

handleClickFunction · 0.90

Tested by

no test coverage detected