+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getPreviousCousin"
keywords = ["grafana","documentation","sdk","@grafana/ui"]
type = "docs"
+++

## DOMUtil.getPreviousCousin() function

### DOMUtil.getPreviousCousin() function

<b>Signature</b>

```typescript
export declare function getPreviousCousin(node: any, selector: string): any;
```
<b>Import</b>

```typescript
import { DOMUtil } from '@grafana/ui';
const { getPreviousCousin } = DOMUtil;
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  node | <code>any</code> |  |
|  selector | <code>string</code> |  |

<b>Returns:</b>

`any`

