collapse

Use the folding panel to store content area

Example

Basic usage

1<collapse height="180.0" width="300.0" position="Bottom" opened="false">
2  <view as_prop="header" theme="Info" height="40.0">
3    <label text="'default collapse'"></label>
4  </view>
5  <view as_prop="body" theme="Error" height="140.0"></view>
6</collapse>

Properties

NameDescriptionType
rect_sizeRectangle sizeF64
openedWhether to openbool
foldFolding degreeF64
cursorCursor typeMouseCursor
grab_key_focusWhether to get keyboard focusbool
visibleIs it visiblebool
animation_keyIs animation enabledbool
positionPosition parameterPosition4
event_keyEvent identifierbool
abs_posAbsolute positionDVec2
marginMarginMargin
widthWidthSize
heightHeightSize
scrollScroll offsetDVec2
clip_xClip X axis or notbool
clip_yClip Y axis or notbool
paddingPaddingPadding
alignAlignmentAlign
flowFlowFlow
spacingSpacingF64

Event callback

NameDescriptionParameters
hoverHover eventFingerHoverEvent
openedOpen eventFingerUpEvent
closedClose eventFingerUpEvent

Slots

  • header
  • body