# emptyStateActionClicked

Emitted when an empty-state action button is clicked. Connect the app flow appropriate to the action type.

Canonical: https://grid.syidax.com/docs/events/emptyStateActionClicked/

<a id="meaning"></a>

## What does this API do?

Emitted when an empty-state action button is clicked. Connect the app flow appropriate to the action type.

<a id="contract"></a>

## Exact input and result types

```typescript
emptyStateActionClicked: GridEmptyStateActionDetail
```

<a id="usage"></a>

## Usage flow

Subscribe with grid.addEventListener('emptyStateActionClicked', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

```javascript
const controller = new AbortController();
grid.addEventListener('emptyStateActionClicked', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

<a id="types"></a>

## Read related types

- [GridEmptyStateActionDetail](https://grid.syidax.com/docs/types/GridEmptyStateActionDetail.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Loading and empty results](https://grid.syidax.com/docs/features/overlays.md) — Loading and empty-data messages explain why the table has no visible content. Pending requests, no results, and failures are distinct states and should not share one empty screen.
