# Creating an action from a button or a link

## Overview

In the Avonni Data Table, it's possible to set a column data type as a button, where the data is displayed as a clickable button. This type of column allows users to trigger actions by clicking on the button, such as opening a related page or performing an action on the associated data. The button column data type provides a clear and intuitive way for users to interact with the data and perform these actions.

<figure><img src="/files/1xw2bOHzoCxut5olQb1K" alt=""><figcaption><p>Final Result</p></figcaption></figure>

## How do I add a button?

* Add a new column&#x20;
* Select **Button** as type
* Enter the button information like the label and name

{% hint style="info" %}

* The label name can be set as the value of a field (by selecting a field name)
* Entering a name value is essential to [set up an action](/flow/component-builder/interactions-panel.md) on that button.
* Set the variant to base if you want to mimic a link
  {% endhint %}

<figure><img src="/files/fxH5gLCwJCqRXou4kXea" alt=""><figcaption></figcaption></figure>

## Create the interaction

Once your button is created, create an interaction by going to the interaction tab.

{% @arcade/embed flowId="4LmJkQXywvEYzc4S3GNG" url="<https://app.arcade.software/share/4LmJkQXywvEYzc4S3GNG>" %}

{% hint style="info" %}
The Avonni Flow Screen Components Library [provides a range of interaction actions](/flow/component-builder/interactions-panel.md) to enhance your projects' functionality and user experience.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.avonnicomponents.com/flow/tutorials/components/data-table/tips-and-tricks/creating-an-action-from-a-button-or-a-link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
