Inheritence

Summary

A virtualized, scrollable grid panel that only creates item panels when visible.

Constructors

VirtualList Initializes a new Sandbox.UI.VirtualGrid.

Properties

Item Template used to render an item into a cell panel.
ItemHeight Fixed width of each item. If < 0, layout may stretch to fill width.
Items Replaces the current items. Only triggers a rebuild if the sequence is actually different.
NeedsRebuild When true, forces a layout rebuild on the next Sandbox.UI.VirtualList.Tick.
OnCreateCell Called when a cell is created. Allows you to fill the cell in
OnLastCell Called when the last cell has been viewed. This allows you to view more.

Methods

AddItem Adds a single item and marks the grid for rebuild.
AddItems
Clear Clears all items and destroys created panels.
HasData Returns true if <paramref name="i" /> is a valid item index.
SetItems
Tick Per-frame update: adjusts spacing from CSS, updates layout, creates/destroys visible panels.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.