# tmux_model:window/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_model.erl#L204
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_model-window-1/

```
window(Fields)
-spec window(window_input()) ->
                {ok, window()} |
                {error, tmux_schema:error_detail()}.
```

Construct a detached window row, validating required fields and scalar bounds without tmux I/O.

## Parameters

- `Fields` (`window_input()`)
