Skip to main content
Also has everything from ElementHandle. A vertical list. items are strings, or tables like { id, name?, icon? }. Value is the id of the selected item.

Creation


SetItems

Replace all items.

AddItem


RemoveItem


SetSelected

Pass nil to clear.

GetSelected / GetSelectedItem

GetSelectedItem returns the full item table.

SetShowSearch

Toggle the search field.

SetMaxHeight

Cap the scroll height.

SetEmptyText

Shown when there are no items.

SetPlaceholder

Search field placeholder.

AddFilter

Filter which items the user sees. Without a comparator, the built-in default is used.

RemoveFilter


SetFilter

Activate a filter by name. Pass nil to clear.

GetFilter


SetRenamable / IsRenamable

Let the user rename items in place.

OnRename

Runs when the user commits a rename.

BeginEdit / CancelEdit / CommitEdit

Control inline renaming from code.