# Disabling a button based on condition

If necessary, you can disable a table button based on a specific condition. Here's how you can do that:

1. Click on the column with the button to open its settings.
2. Scroll down to the *Edit settings* section and specify the required condition in the *Disabled* field, for example, `{{row.status}} == 'Resolved'`.

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

This way, the button will be disabled for the rows with the Resolved status.


---

# 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.uibakery.io/reference/working-with-components/table/more-ways-to-use-the-component/disabling-a-button-based-on-condition.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.
