Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Mentions

Since 0.1.0-alpha.24
Suggests people or tags as the user types @ or # in a text area, and writes the chosen name into the text.

IzzyBlazor.Mentions<TItem> in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly and its doc comments.

Properties (17)

ItemsIEnumerable<TItem>?Added in 0.1.0-alpha.24

Suggestions for every trigger, narrowed in the browser as the user types.

ItemTextFunc<TItem, string>? (computed)Added in 0.1.0-alpha.24

What's written into the text for an item, after the trigger: a handle without spaces. Defaults to the item's ToString().

ItemTemplateRenderFragment<TItem>? (computed)Added in 0.1.0-alpha.24

How a suggestion looks in the list, such as an avatar beside a full name. Defaults to ItemText.

ItemDisabledFunc<TItem, bool>?Added in 0.1.0-alpha.24

Suggestions shown but not chosen, such as someone without access.

PrefixesIReadOnlyList<string>? = @Added in 0.1.0-alpha.24

The characters that start a mention, such as ["@", "#"]. Defaults to @.

Splitstring = " "Added in 0.1.0-alpha.24

Written after a chosen name, unless the text there already starts with it. Defaults to a space.

PlacementMentionsPlacement = MentionsPlacement.BottomAdded in 0.1.0-alpha.24

Whether the suggestions open below the caret's line (the default) or above it. They flip where there's no room.

DebounceTimeSpan = TimeSpan.FromMilliseconds(250)Added in 0.1.0-alpha.24

How long to wait after the last keystroke before searching. Defaults to 250 milliseconds.

Rowsint = 4Added in 0.1.0-alpha.24

Visible lines. Defaults to 4; 1 for a one-line look.

AutoGrowbool = falseAdded in 0.1.0-alpha.24

Grows with the text instead of scrolling, from Rows lines up, where the browser supports CSS field-sizing.

Placeholderstring?Added in 0.1.0-alpha.24

Text in the empty field, such as "Type @ to mention someone".

MaxLengthint? (computed)Added in 0.1.0-alpha.24

Maximum length. Defaults to [StringLength] or [MaxLength].

Clearablebool = falseAdded in 0.1.0-alpha.24

A button in the field that empties it, there while it holds text. Off by default.

ReadOnlybool = falseAdded in 0.1.0-alpha.24

Makes the field read-only: it can be focused and its text selected, and it still posts.

@bind-Valuestring?Added in 0.1.0-alpha.24

The value, bound with @bind-Value.

DisplayNamestring?Added in 0.1.0-alpha.24

The field's name in validation messages from the input itself, such as a value that can't be parsed.

Events (0)

No events.

Types (2)

MentionQuery

record

What Mentions<T>'s Search is asked for: a trigger and the text typed after it.

MentionQuery members
MemberDescription
Prefix string

The trigger typed, such as @ or #.

Text string

What's typed after it so far; "" when the trigger was just typed.

MentionsPlacement

enum

Where Mentions<T>'s suggestions open, next to the line being typed.

MentionsPlacement values
ValueDescription
Bottom

Below the line (the default).

Top

Above the line, for a field near the bottom of the page, such as a chat box.

Connection lost

Rejoining the server…