---
url: https://lit-ui-router.dev/reference/ui-router-devtools/index/interfaces/ViewLocator.md
---
[ui-router-devtools](../../index.md) / [ui-router-devtools](../index.md) / ViewLocator

# Interface: ViewLocator

Defined in: [ui-router-devtools/src/views.ts:19](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/views.ts#L19)

What a renderer adds to the panel's Views: where a view is on the page. The panel calls it when one is set, and
only for the live router, never for an imported session.

## Methods

### describe()?

```ts
describe?(view): string | null;
```

Defined in: [ui-router-devtools/src/views.ts:23](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/views.ts#L23)

Where the page shows the view, in words; null when the page has no element for it.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `view` | [`ViewInfo`](ViewInfo.md) |

#### Returns

`string` | `null`

***

### highlight()

```ts
highlight(view): void;
```

Defined in: [ui-router-devtools/src/views.ts:21](https://github.com/simshanith/lit-ui-router/blob/31f3b09934f0d5fb680137a7c51356c2acec408d/packages/ui-router-devtools/src/views.ts#L21)

Marks the view's place on the page; null takes the mark away.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `view` | [`ViewInfo`](ViewInfo.md) | `null` |

#### Returns

`void`
