# Editor.AdvancedDropdownWidget

A generic sliding hierarchical selector widget.
Build a tree of [Editor.AdvancedDropdownItem](/api/Editor.AdvancedDropdownItem) and hand it to this widget.

- Kind: class
- Namespace: `Editor`
- Assembly: `Sandbox.Tools`
- Inherits: [Editor.Widget](/api/Editor.Widget)

## Constructors

- [`AdvancedDropdownWidget`](/api/Editor.AdvancedDropdownWidget/.ctor)

## Properties

- [`ContentSize`](/api/Editor.AdvancedDropdownWidget/ContentSize): Fixed size of the content area (below the search bar).
- [`FilterWidget`](/api/Editor.AdvancedDropdownWidget/FilterWidget): Optional filter widget placed next to the search bar (e.g. a settings button).
- [`OnBuildItems`](/api/Editor.AdvancedDropdownWidget/OnBuildItems): Called to (re)build the item tree. Receives [Editor.AdvancedDropdownWidget.RootItem](/api/Editor.AdvancedDropdownWidget/RootItem) after it has been cleared.
- [`OnFinished`](/api/Editor.AdvancedDropdownWidget/OnFinished): Called after selection to allow the host to close/cleanup.
- [`OnSelect`](/api/Editor.AdvancedDropdownWidget/OnSelect): Called when a leaf item is selected. Receives the item's [Editor.AdvancedDropdownItem.Value](/api/Editor.AdvancedDropdownItem/Value).
- [`RootItem`](/api/Editor.AdvancedDropdownWidget/RootItem): The root of the item tree. Populated by [Editor.AdvancedDropdownWidget.OnBuildItems](/api/Editor.AdvancedDropdownWidget/OnBuildItems) or set directly.
- [`RootTitle`](/api/Editor.AdvancedDropdownWidget/RootTitle): Title shown in the root panel header.
- [`Search`](/api/Editor.AdvancedDropdownWidget/Search)
- [`SearchPlaceholderText`](/api/Editor.AdvancedDropdownWidget/SearchPlaceholderText): Placeholder text shown in the search bar.
- [`SearchScorer`](/api/Editor.AdvancedDropdownWidget/SearchScorer): Optional custom search scorer. Receives an item and the search words, returns a score (0 = no match). If null, the default scorer matches against Title and Description.

## Methods

- [`PopPanel`](/api/Editor.AdvancedDropdownWidget/PopPanel): Pop the current panel (navigate back).
- [`Rebuild`](/api/Editor.AdvancedDropdownWidget/Rebuild): Rebuild the item tree and reset to the root panel.
