+++ # ----------------------------------------------------------------------- # Do not edit this file. It is automatically generated by API Documenter. # ----------------------------------------------------------------------- title = "ClickOutsideWrapper" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" +++ ## ClickOutsideWrapper class Signature ```typescript export declare class ClickOutsideWrapper extends PureComponent ``` Import ```typescript import { ClickOutsideWrapper } from '@grafana/ui'; ``` Properties | Property | Modifiers | Type | Description | | --- | --- | --- | --- | | [onOutsideClick](#onoutsideclick-property) | | (event: any) => void | | | [state](#state-property) | | {
hasEventListener: boolean;
} | | Methods | Method | Modifiers | Description | | --- | --- | --- | | [componentDidMount()](#componentdidmount-method) | | | | [componentWillUnmount()](#componentwillunmount-method) | | | | [render()](#render-method) | | | ### onOutsideClick property Signature ```typescript onOutsideClick: (event: any) => void; ``` ### state property Signature ```typescript state: { hasEventListener: boolean; }; ``` ### componentDidMount method Signature ```typescript componentDidMount(): void; ``` Returns: `void` ### componentWillUnmount method Signature ```typescript componentWillUnmount(): void; ``` Returns: `void` ### render method Signature ```typescript render(): import("react").ReactNode; ``` Returns: `import("react").ReactNode`