QueryListBlock
A query list block represents a special query block that will list a set of value for a given filter.
Read time 8 minutesLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
- Inherits from: QueryBlock
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
public abstract class QueryListBlock : QueryBlock, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle
Remarks
In example, if your SearchProvider has a filter named for which the value can be yellow, red or pink. Then you'll use the QueryListBlockAttribute to have this filter be displayed as a block that when clicked will show a fixed set of values to be picked from.
colorFields
Properties
Property | Description |
|---|---|
| icon | Icon displayed in the query builder block widget. |
Methods
Method | Description |
|---|---|
| GetPropositions | Returns propositions when the list block is clicked. |