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

1.5 KiB
Raw Blame History

HomeUpdateLogConfigTheme

Collapse

👚

A content area which can be collapsed and expanded.

  • DefaultPropertyItems
  • DefaultEventExpandChanged

Property

Name Description Type Default Value
ForeColor Text color Color? null
HeaderBg Head background Color? null
HeaderPadding Head margin Size 16, 12
ContentPadding Content margin Size 16, 16
BorderWidth Border width float 1F
BorderColor Border color Color? null
Radius Rounded corners int 6
Gap Gap int 0
Unique Keep only one unfolded bool false
Items Data CollapseItem[] CollapseItem[] []

Event

Name Description Return Value Parameters
ExpandChanged Occurrence when Expand attribute value changes void CollapseItem value, bool Expand Expand or not

Data

CollapseItem

Inherited from ScrollableControl

Name Description Type Default Value
Expand Expand bool true
Full 🔴 Is the remaining space fully filled bool false
Text Text string? null
🌏 LocalizationText International Text string? null