# ActiveView Interface

> ActiveView interface in the TX Sheet Control TypeScript API for Node.js, with its syntax, 2 properties and a TypeScript example.

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

---

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

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

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

### Members

#### Properties

| Property | Description |
|---|---|
| [id](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/activeview/id-property/llms-full.txt) | The id value of ActiveView. |
| [type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/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 { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

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

### See Also

- [TypeScript Node.js Server API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/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/nodejs/activeview/id-property/llms-full.txt): ActiveView.id property in the TX Sheet Control TypeScript API for Node.js, with its syntax, its type string and a TypeScript example.
- [ActiveView.type Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/activeview/type-property/llms-full.txt): ActiveView.type property in the TX Sheet Control TypeScript API for Node.js, with its type "sheet" | "dashboard" and a TypeScript example.

---

## Nearby

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