mirror of
https://gitee.com/AntdUI/AntdUI.git
synced 2025-12-06 08:08:52 +08:00
2.0 KiB
2.0 KiB
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 | 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[] | Required |
| Call | Click on callback | Action | 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 | 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 | 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 |