PIXEL UI
Category

PIXEL.Category

Methods

The following methods are available on the PIXEL.Category panel:

PANEL:UnselectAll()

Clears selected state from child panels that support `SetSelected`.

PANEL:SetTitle( string )

Sets the category header title text.

PANEL:SetContents( Panel )

Sets the content panel shown inside the category.

PANEL:SetExpanded( boolean )

Sets whether the category should be expanded.

PANEL:Toggle()

Toggles the expanded/collapsed state.

PANEL:OnToggle( boolean )

Callback fired when expanded state changes.

PANEL:DoExpansion( boolean )

Forces an expansion state change when needed.

PANEL:LayoutContent( number, number )

Extension point for additional category content layout.