Interface PromptAssist.Option
- All Known Implementing Classes:
PromptAssist.Option.DrillIn, PromptAssist.Option.Insert, PromptAssist.Option.InsertOrDrillIn
- Enclosing interface:
PromptAssist
public static sealed interface PromptAssist.Option
permits PromptAssist.Option.Insert, PromptAssist.Option.DrillIn, PromptAssist.Option.InsertOrDrillIn
One row in the popup.
The three variants encode the only three combinations of "can be confirmed" and "can be expanded" that make sense for a popup row:
PromptAssist.Option.Insert— terminal. The row commits and closes the popup.PromptAssist.Option.DrillIn— folder. The row rewrites the query and keeps the popup open.PromptAssist.Option.InsertOrDrillIn— both. The row carries anPromptAssist.Option.Insertpayload and aPromptAssist.Option.DrillInpayload; the user picks which behavior to invoke via key (Enter / Tab) or click target (body / chevron).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA "folder-like" row: selecting it rewrites the trigger span tonextQueryand asks every assist for fresh options.static final recordA terminal row: selecting it splices@<id>:<path>— built by the framework from the owning assist'sPromptAssist.id()and this row'sPromptAssist.Option.Insert.path— into the prompt at the trigger span, closes the popup, and registers aContextReferencethe framework resolves at submit time.static final recordA row that is both confirmable and expandable. -
Method Summary