# SpellCheckTextCallback Function

> Callback function for a spell check related event. (see also TXTextControl.addEventListener function)

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Function
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > SpellCheckTextCallback Function
- **186 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/spellchecktextcallback/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/spellchecktextcallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/spellchecktextcallback/llms-full.txt

---

### Description

Callback function for a spell check related event. (see also [TXTextControl.addEventListener function](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/addeventlistener-method/llms-full.txt))

### Syntax

```javascript
function(<SpellCheckTextEventArgs> args)
```

### Examples

The following example demonstrates `SpellCheckTextCallback` in a practical document-editing workflow. Callback function for a spell check related event. (see also TXTextControl.addEventListener function).

```javascript
function spellCheckTextCallback(args) {
    console.log("args:", args);
}
```

---

## Nearby

- **Previous:** [Javascript: Size.width Property](https://docs.textcontrol.com/ds-server/reference/javascript/size/width-property/llms-full.txt)
- **Next:** [SpellCheckTextEventArgs Object](https://docs.textcontrol.com/ds-server/reference/javascript/spellchecktexteventargs/llms-full.txt)
