View as Markdown

API reference: @salmonui/dropdowns/mention

MentionBeforeInsertEventinterface

import type { MentionBeforeInsertEvent } from '@salmonui/dropdowns/mention';
interface MentionBeforeInsertEvent<T = MentionItem> extends MentionInsertEvent<T> {
    preventDefault(): void;
    readonly defaultPrevented: boolean;
}
MentionBeforeInsertEvent members (6, 4 inherited)
NameSignatureDescription
preventDefaultpreventDefault(): void;

Cancels the insertion; the list stays open.

defaultPreventedreadonly defaultPrevented: boolean;
iteminheriteditem: T;
textinheritedtext: string;

The text that replaces the trigger and the search text.

triggerinheritedtrigger: string;

The trigger character that started this mention.

sourceinheritedsource: MentionEventSource;