# Config Buttons

Config buttons are fields that will show up as buttons in the UI these are useful if you want to make an editor for certain values.&#x20;

To add a button to the UI you first must annotate a field with the @ConfigButton annotation, the annotation requires 1 thing the text of the button. Optionally you can add a translation key for the button title, this title is used like titles for other config options where it is disabled on the left hand side of the row.

### Example

```java
@ConfigButton(text = "Click Me!")
public static final Runnable button = () -> {};
```

{% hint style="info" %}
Note

Config buttons have certain restrictions they must follow. The following are the restrictions.

* The field must have the public access modifier
* The field must be static
* The field must be final
* The field must be Runnable type
  {% 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://config.wiki.teamresourceful.com/creating-your-first-config/config-buttons.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.
