API reference: @salmonui/dropdowns/mention
MentionEditorInsertioninterface
import type { MentionEditorInsertion } from '@salmonui/dropdowns/mention';interface MentionEditorInsertion {
readonly start: number;
readonly end: number;
readonly text: string;
readonly suffix: string;
readonly trigger: string;
readonly value: string | number;
readonly label: string;
readonly item: unknown;
}
What Mention asks an editor target to insert.
| Name | Signature | Description |
|---|---|---|
start | readonly start: number; | Offset of the trigger in the text block (the text |
end | readonly end: number; | Offset of the caret: |
text | readonly text: string; | The text the textarea path would insert: trigger (with |
suffix | readonly suffix: string; | The trigger suffix included at the end of |
trigger | readonly trigger: string; | |
value | readonly value: string | number; | |
label | readonly label: string; | |
item | readonly item: unknown; |