> For the complete documentation index, see [llms.txt](https://swimlane.gitbook.io/ngx-datatable/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://swimlane.gitbook.io/ngx-datatable/api/row/row-def.md).

# Custom row wrapper

Use to pre-apply directives at row level.

### `rowDef`

Directive to be applied on `ng-template`.

### `datatable-row-def`

Component to be used as content of `ng-template`. Apply your custom row level directive/class on this component. Example:

**Template**

```html
<ng-template rowDef>
  <datatable-row-def applyYourCustomDirectiveHereForRow />
</ng-template>
```
