# Spreadsheet.ui Property

> Spreadsheet.ui property in the TX Sheet Control JavaScript API for the browser, with its type EditorUi and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > Spreadsheet > Spreadsheet.ui Property
- **308 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/ui-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/ui-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/ui-property/llms-full.txt

---

The ui value of Spreadsheet.

Owner: [Spreadsheet](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
readonly ui: EditorUi
```

Read through the owning object: `owner.ui`. Follow the declared mutability and owning object lifetime.

### Examples

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

```javascript
function inspectSpreadsheetUi(spreadsheet) {
    const value = spreadsheet['ui'];
    console.log('Spreadsheet.ui', value);
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [Spreadsheet Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [EditorUi Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/llms-full.txt)

---

## Nearby

- **Previous:** [Spreadsheet.saveText Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/savetext-method/llms-full.txt)
- **Next:** [Spreadsheet.userName Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/username-property/llms-full.txt)
