Files
AntdUI/doc/wiki/en/Control/FloatButton.md
2025-10-16 11:03:26 +08:00

56 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[Home](../Home.md)・[UpdateLog](../UpdateLog.md)・[Config](../Config.md)・[Theme](../Theme.md)
## FloatButton
> A button that floats at the top of the page.
### FloatButton.Config
> Configure FloatButton
Name | Description | Type | Default Value |
:--|:--|:--|:--|
**Form** | Belonging window | Form | `Required` |
**Font** | Font | Font`?` ||
**Control** | Belonging Control | Control`?` ||
**Align** | Align | [TAlign](Enum.md#talign) | BR |
**Vertical** | Is it in the vertical direction | bool | true |
**TopMost** | Topped | bool | false |
**Size** | Size | int | 40 |
**MarginX** | MarginX | int | 24 |
**MarginY** | MarginY | int | 24 |
**Gap** | Gap | int | 40 |
**Btns** | Button List | [ConfigBtn[]](#floatbutton.configbtn) | `Required` |
**Call** | Click on callback | Action<ConfigBtn> | `Required` |
### FloatButton.ConfigBtn
> Configure ConfigBtn
Name | Description | Type | Default Value |
:--|:--|:--|:--|
**Name** | Name | string | `null` |
**Text** | Text | string`?` | `null` |
🌏 **LocalizationText** | International Text | string`?` | `null` |
**Fore** | Text color | Color`?` | `null` |
**Enabled** | Enable | bool | true |
**Loading** | Loading | bool | false |
**LoadingValue** 🔴 | Loading progress | float | 0.3F |
**Round** | Rounded corner style | bool | true |
**Type** | Type | [TTypeMini](Enum.md#ttypemini) | Default |
**Radius** | Rounded corners | int | 6 |
||||
**Icon** | Custom Icon | Image`?` | `null` |
**IconSvg** | Custom Icon SVG | string`?` | `null` |
**IconSize** | Icon size `Default automatic size` | Size | 0 × 0 |
||||
**Badge** | Badge text | string`?` | `null` |
**BadgeSvg** 🔴 | Badge SVG | string`?` | `null` |
**BadgeAlign** 🔴 | Badge align | [TAlignFrom](Enum.md#talignfrom) | TR |
**BadgeSize** | Badge size | float | 0.6F |
**BadgeMode** 🔴 | Badge mode (hollow out) | bool | false |
**BadgeOffsetX** 🔴 | Badge offset X | float | 0 |
**BadgeOffsetY** 🔴 | Badge offset Y | float | 0 |
**BadgeBack** | Badge background color | Color`?` | `null` |
||||
**Tooltip** | The content of bubbles | string`?` | `null` |