---
title: "empty-action"
description: "Show an action when an object table has no rows."
permalink: /docs/runtime/all-ui-components/object-table/empty-action/
---
# empty-action

## Overview

In the event that an `object-table` contains no rows, an `empty-action` can be used to add additional UI functionality.

<Info>

See more information in the guide on `object-table` [actions](/docs/runtime/all-ui-components/object-table/object-table-guides/actions/).

</Info>

### Basic Example

**main.view\.xml**

```xml
<object-table ...>
    <empty-action icon="fa-angle-right" on-press="$:noResultsAction()" validate="false" />
    ...
</object-table>
```

## Standard Attributes

### `on-press`

See [`object-table` > `action` > `on-press`](/docs/runtime/all-ui-components/object-table/action/#on-press)

### `validate`

See [`object-table` > `action` > `validate`](/docs/runtime/all-ui-components/object-table/action/#validate)

## Advanced Attributes

### `icon`

See [`object-table` > `action` > `icon`](/docs/runtime/all-ui-components/object-table/action/#icon)
