UIFoldPanel.new

Inputs:

  • parentSizer [UISizer]: Parent sizer of the newly created Panel
  • xPosition [integer?]: [optional, default=-1]
  • yPosition [integer?]: [optional, default=-1]
  • width [integer?]: [optional, default=-1]
  • height [integer?]: [optional, default=-1]
  • borderDirection [integer?]: (BorderDirection.ALL, BorderDirection.TOP, BorderDirection.BOTTOM, BorderDirection.LEFT or BorderDirection.RIGHT) [optional, default=BorderDirection.NONE]
  • borderSize [integer?]: in pixels [optional, default=0]
  • proportion [integer?]: [optional, default=0]

Outputs:

  • uiFoldPanel [UIFoldPanel]:

UIFoldPanel:addPanel

Inputs:

  • label [string]: Label of the foldable panel
  • sizer [UISizer]: Parent sizer of the elements contained in the foldable panel
  • foldedInitially [boolean?]: [optional, default=false]

UIFoldPanel:destroy

UIFoldPanel:isVisible

Outputs:

  • [boolean]:

UIFoldPanel:setOnChangeCallback

Inputs:

  • callbackFunction [object]: function(panelLabel, isExpanded)
  • functionObject [object?]: functionObject [optional, default=NULL]

UIFoldPanel:setVisible

Inputs:

  • visible [boolean?]: [optional, default=true]

Last updated 12 Apr 2025, 16:09 +0200 . history