Skip to content

Interface: SuggestionMenuOptions ​

Options for createSuggestionMenu().

Properties ​

PropertyTypeDescription
charstringThe character that opens the menu, e.g. / or @.
idPrefix?stringPrefix 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.
labelstringAccessible name of the list, e.g. "Commands" or "People".
maxQueryLength?numberLongest query that keeps the menu open. Default 50.
messages?Partial<Messages>Overrides for the status text (suggestionCount); English by default.