# Javascript: TextFrame.setMoveable Method

> Sets whether a frame can be moved in the document at run time with the built-in mouse interface.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TextFrame.setMoveable Method
- **371 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textframe/setmoveable-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textframe/setmoveable-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textframe/setmoveable-method/llms-full.txt

---

### Description

Sets whether a frame can be moved in the document at run time with the built-in mouse interface.

### Syntax

```javascript
<void> TextFrame.setMoveable(<Boolean> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| value | The new property value. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `TextFrame.setMoveable` in a practical document-editing workflow. It sets whether a frame can be moved in the document at run time with the built-in mouse interface.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function configureMoveable(textFrame) {
    textFrame.setMoveable(
        true,
        function() {
            console.log("set moveable completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: TextFrame.setLocation Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframe/setlocation-method/llms-full.txt)
- **Next:** [Javascript: TextFrame.setName Method](https://docs.textcontrol.com/ds-server/reference/javascript/textframe/setname-method/llms-full.txt)
