PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

ApplyLayout

The ApplyLayout method forces sibling UI elements to be re-laid out in case the sorting criteria may have changed (such as when UIGridStyleLayout/SortOrder is set to Custom, and the UIGridStyleLayout/SetCustomSortFunction behavior changed). Re-layouts automatically happen when UI elements are added/removed, or their Instance/Name or GuiObject/LayoutOrder change.

The manner in which sibling UI elements are laid out is dependent on the implementation of this abstract class. In other words, a concrete class like UIListLayout or UIGridLayout is responsible for the actual element positioning.

Returns

Return Type Summary

Code Samples


UI Sort Order

This code sample demonstrates sorting data using UIGridStyleLayout/SortOrder and GuiObject/LayoutOrder.