Interface: SuggestionMenuOptions
Options for createSuggestionMenu().
Properties
| Property | Type | Description |
|---|---|---|
char | string | The character that opens the menu, e.g. / or @. |
idPrefix? | string | Prefix for element ids. Default: generated. |
items | (query) => | readonly SuggestionItem[] | Promise<readonly SuggestionItem[]> | The items for a query (what was typed after char). May be async. |
label | string | Accessible name of the list, e.g. "Commands" or "People". |
maxQueryLength? | number | Longest query that keeps the menu open. Default 50. |
messages? | Partial<Messages> | Overrides for the status text (suggestionCount); English by default. |