# empty-action

## Overview

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

{% hint style="info" %}
See more information in the guide on `object-table` [actions](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/object-table/object-table-guides/actions).
{% endhint %}

### Basic Example

{% code title="main.view\.xml" %}

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

{% endcode %}

## Standard Attributes

### `on-press`

See [`object-table` > `action` > `on-press`](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/action#on-press)

### `validate`

See [`object-table` > `action` > `validate`](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/action#validate)

## Advanced Attributes

### `icon`

See [`object-table` > `action` > `icon`](https://docs.journeyapps.com/reference/build/ui-components/all-ui-components/action#icon)
