# ActiveView Interface

> ActiveView interface in the TX Sheet Control TypeScript API for the browser, with 2 properties and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > ActiveView Interface
- **328 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/llms-full.txt

---

The sole active workbook viewport. A worksheet remains selected while a dashboard is visible.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [id](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/id-property/llms-full.txt) | The id value of ActiveView. |
| [type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/type-property/llms-full.txt) | The type value of ActiveView. |

### Examples

Pass the ActiveView value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
import type { ActiveView } from '@txtextcontrol/tx-sheet-control';

function inspectActiveViewType(activeView: ActiveView) {
    const value = activeView['type'];
    console.log('ActiveView.type', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [ActiveView.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/id-property/llms-full.txt): ActiveView.id property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [ActiveView.type Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/type-property/llms-full.txt): ActiveView.type property in the TX Sheet Control TypeScript API for the browser, with its type "sheet" | "dashboard" and a TypeScript example.

---

## Nearby

- **Previous:** [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- **Next:** [ActiveView.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/activeview/id-property/llms-full.txt)
