# f-button

## Giới thiệu

`f-button` là một component dùng để hiển thị button.

## Sử dụng

```json
{
    "el": "f-button",
    "attr": {
        "icon-text": "mdi-magnify",
        "label": "Button",
        "action": {
            "FUN": "openWindow",
            "IN": {
                "id": "`windowId",
                "title": "Tiêu đề cửa sổ",
                "width": 800,
                "height": 600,
                "url": "`https://example.com"
            }
        }
    }
}
```

## Các thuộc tính

Vì kế thừa nên các thuộc tính của `f-button` cũng tương tự như [`v-btn`](https://v2.vuetifyjs.com/en/api/v-btn) của Vuetify. Tuy nhiên, `f-button` có thêm một số thuộc tính sau:

* `label` (string): Nội dung của button.
* `icon-text` (string): Tên material icon hiển thị trên button. Tham khảo [Material Design Icon](https://pictogrammers.github.io/@mdi/font/5.4.55/)[s](https://pictogrammers.github.io/@mdi/font/5.4.55/).
* `action` (object): Hành động khi click vào button. Để thực thi một khối lệnh bất kì.


---

# 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://fui-docs.gitbook.io/docs/cac-control-chuc-nang/fui-control/f-button.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.
