API reference: @salmonui/chat/text-suggest
BeforeSuggestionShowEventinterface
import type { BeforeSuggestionShowEvent } from '@salmonui/chat/text-suggest';interface BeforeSuggestionShowEvent {
readonly text: string;
readonly defaultPrevented: boolean;
preventDefault(): void;
}
Cancellable event fired before a suggestion shows.
| Name | Signature | Description |
|---|---|---|
text | readonly text: string; | |
defaultPrevented | readonly defaultPrevented: boolean; | |
preventDefault | preventDefault(): void; |