> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/tutorials/components/data-table/tips-and-tricks/creating-an-action-from-a-button-or-a-link.md).

# 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
* 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 url="<https://app.arcade.software/share/4LmJkQXywvEYzc4S3GNG>" flowId="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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
