---
Title: Empty list component
Added: v2.0.0
Status: Active
---

# [Empty list component](../../../lib/core/datatable/components/empty-list/empty-list.component.ts "Defined in empty-list.component.ts")

Displays a message indicating that a list is empty.

![](../../docassets/images/adf-empty-list.png)

## Basic Usage

```html
<adf-datatable ...>

    <adf-empty-list>
        <adf-empty-list-header>"'My custom Header'"</adf-empty-list-header>
        <adf-empty-list-body>"'My custom body'"</adf-empty-list-body>
        <adf-empty-list-footer>"'My custom footer'"</adf-empty-list-footer>
        <ng-content>"'HTML Layout'"</ng-content>
    </adf-empty-list>

</adf-datatable>
```

### [Transclusions](../../user-guide/transclusion.md)

You can supply a custom header, body, and footer for an empty list using special
sub-components:

```html
<adf-empty-list>
    <adf-empty-list-header>"'My custom Header'"</adf-empty-list-header>
    <adf-empty-list-body>"'My custom body'"</adf-empty-list-body>
    <adf-empty-list-footer>"'My custom footer'"</adf-empty-list-footer>
    <ng-content>"'HTML Layout'"</ng-content>
</adf-empty-list>
```

## Class members

## Details

This component provides a custom display to show when a [Datatable component](datatable.component.md) has
no content.

## See also

-   [Datatable component](datatable.component.md)