OGE logoOGE

Mention

A text area with @-style mentions — Syncfusion's Mention: typing a trigger character at the start or after a space opens a caret-anchored suggestion list on the suite's anchored popup, and the pick is inserted as a plain-text token. The value is the text; [(mentions)] reports what was mentioned — item, value and position — and follows every later edit.

Arrows move, Enter or Tab inserts, Escape closes until the next trigger. A single-line field is a WAI-ARIA combobox; the text area keeps its textbox role with aria-activedescendant.

@ / # triggers caret popup APG combobox forms

Getting started

Type @ at the start or after a space. Arrows move, Enter or Tab inserts @Name , Escape closes the list until the next trigger. allowSpaces lets a query run across a space (@Ada Lo); a mention edited away drops out of mentions.

items displayExpr [(mentions)]

Mentioned ids: —

Several triggers

triggers takes several characters, each with its own items and expressions — people on @, tags on #. [multiline]="false" renders a single-line combobox.

triggers multiline: false

Remote suggestions

items may be a function of the typed query returning items or a promise: it is debounced by searchTimeout, stale answers are dropped, and loading / error rows show meanwhile. searchChanged reports each query for your own fetching.

items: (query) => Promise searchTimeout minSearchLength

Custom suggestion rows

An child renders each row; its context carries the item ($implicit), index, trigger, query and active.

ogeMentionItemTemplate context

Inside a form

A FormValueControl and a ControlValueAccessor — the bound value is the text itself, so every validator works unchanged.

formControl Validators.required
Mention a reviewer with @

Valid: false