RayCraftDocs
v1.0.3 raycraft.dev
On this page

AddressField

Free

A recipient field for e-mail: every address becomes a chip. Type or paste a list, pick from suggestions that come from your data source, double-click a chip to edit it, and see at once which addresses are not valid.

Example

AddressField control

Parameters

ParameterTypeDescription
AllowDuplicatesboolAllows the same address twice (default false).
AllowInvalidboolKeeps addresses that are not valid as red chips (default true). When false they stay in the text box with an error.
ClassstringExtra CSS classes added to the root element.
DebounceMillisecondsint
DisabledboolDisables interaction.
ErrorTextstringAn error text from the form, shown under the field.
HelperTextstringHint shown below the field.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MaxItemsint?The most addresses allowed.
MaxSuggestionsintThe most suggestions shown (default 8).
MinCharsintHow many characters are typed before suggestions are asked for (default 1).
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
StylestringInline style added to the root element.
SuggestionsProviderFunc<string, CancellationToken, Task<IEnumerable<AddressSuggestion>>>Returns suggestions (address and optional name) for the typed text.
ValidatorFunc<string, bool>Replaces the built-in check of an address.
ValuesIReadOnlyCollection<string>The addresses, each as Name <address> or address. Two-way.

Events

EventTypeDescription
InvalidCountChangedEventCallback<int>Raised when the number of chips that are not valid changes.
ValuesChangedEventCallback<IReadOnlyCollection<string>>Raised when the chosen items change.

Package

AddressField is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.