You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/mention/accessibility.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ documentation: ug
9
9
10
10
# Accessibility in Blazor Mention Component
11
11
12
-
Web accessibility ensures that web content and applications are usable by people with disabilities. The Blazor Mention component includes built-in support for WAI-ARIA specifications to improve accessibility for assistive technologies. Key attributes such as `aria-selected` and `aria-activedescendant` are applied to communicate state and focus.
12
+
Web accessibility makes web content and web applications more accessible for people with disabilities. Blazor Mention component provides built-in compliance with `WAI-ARIA` specifications. The `WAI-ARIA` support is achieved using the attributes such as `aria-selected` and `aria-activedescendent`.
13
13
14
-
The [Blazor Mention](https://www.syncfusion.com/blazor-components/blazor-mention) component follows accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
14
+
The [Blazor Mention](https://www.syncfusion.com/blazor-components/blazor-mention) component followed the accessibility guidelines and standards, including [ADA](https://www.ada.gov/), [Section 508](https://www.section508.gov/), [WCAG 2.2](https://www.w3.org/TR/WCAG22/) standards, and [WCAG roles](https://www.w3.org/TR/wai-aria/#roles) that are commonly used to evaluate accessibility.
15
15
16
16
The accessibility compliance for the Blazor Mention component is outlined below.
17
17
@@ -20,11 +20,11 @@ The accessibility compliance for the Blazor Mention component is outlined below.
@@ -56,16 +56,17 @@ Here are some of the `ARIA attributes` that might be used to denote the state of
56
56
57
57
## Keyboard interaction
58
58
59
-
Use the following key shortcuts to access the Blazor Mention component without interruptions. These shortcuts allow users to navigate and select items using only the keyboard.
59
+
You can use the following key shortcuts to access the Blazor Mention without interruptions. It allows users to quickly perform actions or navigate through an application using keyboard input.
60
60
61
61
| Windows | Mac | Actions |
62
62
| --- | --- | --- |
63
-
| <kbd>↓</kbd> | <kbd>↓</kbd> |Focuses the first item in the Mention list; otherwise, focuses the next item. |
64
-
| <kbd>↑</kbd> | <kbd>↑</kbd> |Focuses the previous item in the Mention list. |
65
-
| <kbd>Esc(Escape)</kbd> | <kbd>Esc(Escape)</kbd> | Closes the popup list if it is open. |
66
-
| <kbd>Enter</kbd> | <kbd>Enter</kbd> | Selects the focused item and closes the popup list if it is open. |
63
+
| <kbd>↓</kbd> | <kbd>↓</kbd> |Focus the first item in the Mention list. Otherwise, focus the item next to the currently focused item. |
64
+
| <kbd>↑</kbd> | <kbd>↑</kbd> |Focus the item previous to the currently focused one. |
65
+
| <kbd>Esc(Escape)</kbd> | <kbd>Esc(Escape)</kbd> | Closes the popup list when it is in an open state. |
66
+
| <kbd>Enter</kbd> | <kbd>Enter</kbd> | Selects the focused item, and when it is in an open state the popup list closes. |
67
67
| <kbd>Tab</kbd> | <kbd>Tab</kbd> | Focuses on the next tab index element on the page when the popup is closed. Otherwise, inserts the selected popup list item and closes the popup list. |
@@ -74,9 +75,9 @@ Use the following key shortcuts to access the Blazor Mention component without i
74
75
75
76
## Ensuring accessibility
76
77
77
-
The Blazor Mention component’s accessibility is validated using the [axe-core](https://www.npmjs.com/package/axe-core)testing tool during automated testing.
78
+
The Blazor Mention component's accessibility levels are ensured through an [axe-core](https://www.npmjs.com/package/axe-core)software tool during automated testing.
78
79
79
-
The accessibility compliance of the Mention component is shown in the following sample. Open the [sample](https://blazor.syncfusion.com/accessibility/mention) in a new window to evaluate the Mention component with accessibility tools.
80
+
The accessibility compliance of the Mention component is shown in the following sample. Open the [sample](https://blazor.syncfusion.com/accessibility/mention) in a new window to evaluate the accessibility of the Mention component with accessibility tools.
Copy file name to clipboardExpand all lines: blazor/mention/customization.md
+9-15Lines changed: 9 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,17 @@ documentation: ug
9
9
10
10
# Customization in Blazor Mention Component
11
11
12
-
This page covers common customization options for the Blazor Mention component, including displaying the mention character, appending suffix text, configuring the popup list size, changing the trigger character, and controlling leading space behavior.
13
-
14
12
## Show or hide mention character
15
13
16
-
To display the mention character alongside the selected item in the target element, set the [ShowMentionChar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_ShowMentionChar) property to `true`. This helps distinguish the selected mention from surrounding text. The default value is `false`.
14
+
To show the mentioned character along with the text when displaying the selected mention item in the target element, you can set the [ShowMentionChar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_ShowMentionChar) property of the Mention component to `true`. This can be useful in cases where you want to clearly differentiate between the selected mention item and the rest of the text in the Mention component.

22
+

25
23
26
24
## Adding the suffix character after selection
27
25
@@ -35,42 +33,38 @@ The [SuffixText](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDow
35
33
36
34
## Configure the popup list
37
35
38
-
Customize the suggestion list size using the [PopupHeight](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_PopupHeight) and [PopupWidth](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_PopupWidth) properties. Values can be provided as:
39
-
- A string with CSS units (for example, `"300px"`, `"50%"`)
40
-
- A number (interpreted as pixels)
36
+
You can customize the suggestion list's width and height using the [PopupHeight](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_PopupHeight) and [PopupWidth](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_PopupWidth) properties. These properties can accept values in pixels, percentage, or as a number. If a number value is specified, it will be treated as a pixel value.
41
37
42
-
Defaults:
43
-
-`PopupWidth`: `auto` (adjusts based on content)
44
-
-`PopupHeight`: `300px`
38
+
By default, the popup list width value is set to `auto`. Depending on the mentioned suggestion data list, the width value is automatically adjusted. The popup list height value is set to `300px`.

46
+

53
47
54
48
## Trigger character
55
49
56
-
Change the character that triggers the suggestion list using the [MentionChar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_MentionChar) property. By default, the trigger character is `@`, but it can be set to any character.
50
+
The [MentionChar](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_MentionChar) property in the Mention component allows you to specify the character that will trigger the suggestion list to display in the target area. By default, the `@` character is used as the trigger character, but you can customize it to any other character by setting the `MentionChar` property.

58
+

65
59
66
60
## Leading Space Requirement
67
61
68
-
Control whether a space is required before the mention character using the [RequireLeadingSpace](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#properties) property in the Mention component. When set to `true` , a space must precede the mention character to trigger the suggestion popup. When set to `false`, the mention character can trigger suggestions without requiring a leading space.
62
+
You can control whether a space is required before the mention character using the [RequireLeadingSpace](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#properties) property in the Mention component. When set to `true` , a space must precede the mention character to trigger the suggestion popup. When set to `false`, the mention character can trigger suggestions without requiring a leading space.
Copy file name to clipboardExpand all lines: blazor/mention/disabled-items.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ documentation: ug
9
9
10
10
# Disabled Items in Blazor Mention Component
11
11
12
-
The [Mention](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html)component supports disabling individual suggestion items for specific scenarios. Map the disabled state from your data model using the [MentionFieldSettings.Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.MentionFieldSettings.html#Syncfusion_Blazor_DropDowns_MentionFieldSettings_Disabled) field. Disabled items are not selectable and are skipped during keyboard navigation.
12
+
The [Mention](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html)provides options for individual items to be either in an enabled or disabled state for specific scenarios. The category of each list item can be mapped through the [Disabled](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.MentionFieldSettings.html#Syncfusion_Blazor_DropDowns_MentionFieldSettings_Disabled) field in the data table. Once an item is disabled, it cannot be selected as a value for the component. To configure the disabled item columns, use the `MentionFieldSettings.Disabled` property.
13
13
14
-
In the following sample, certain states are disabled by setting the `Disabled` field in the data source.
14
+
In the following sample, State are grouped according on its category using `Disabled` field.
Copy file name to clipboardExpand all lines: blazor/mention/filtering-data.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,15 @@ documentation: ug
9
9
10
10
# Filtering data in Blazor Mention Component
11
11
12
-
The Mention component includes built-in filtering to narrow the suggestion list based on user input. Filtering begins when the user types after the mention character and matches items from the data source against the entered text.
12
+
The Mention component has built-in support for filtering data items, which allows you to easily narrow down the list of mention suggestions based on user input. The filter operation begins as soon as the user starts typing characters in the Mention element, and it is designed to quickly and efficiently search through the available data items to find matches based on the entered characters.
13
13
14
14
## Limit the minimum filter character
15
15
16
-
The [MinLength](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_MinLength) property allows controlling the minimum number of characters required to start searching. By default, `MinLength` is `0`, which opens the suggestion list as soon as the mention character is entered.
16
+
The [MinLength](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_MinLength) property that allows you to control the minimum length of user input required to initiate the search action. By default, the `MinLength`property is set to `0`, which means that the suggestion list will open as soon as the user inputs the mention character.
17
17
18
-
For example, when `MinLength`is set to `3`, suggestions appear only after at least three characters are typed.
18
+
For example, if you set `MinLength` to `3`, the suggestion list will only open when the user has entered at least three characters.
19
19
20
-
In the following example, the remote request does not fetch data until the search key contains three characters.
20
+
In the following example, the remote request does not fetch the search data until the search key contains three characters.
21
21
22
22
{% highlight razor %}
23
23
@@ -27,11 +27,11 @@ In the following example, the remote request does not fetch data until the searc
27
27
28
28
## Change the filter type
29
29
30
-
The [FilterType](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_FilterType) property specifies the type of string comparison for filtering. By default, `FilterType` is `Contains`, which finds items containing the search text. The component supports the following filter types (see the [FilterType enum](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.FilterType.html)):
30
+
The [FilterType](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_FilterType) property allows you to specify the type of filter to use when filtering data items. By default, the `FilterType`property is set to `Contains`, which means that the Mention component will search for items that contain the entered search string as a substring. The `FilterType` property supports below three different filter types.
31
31
32
-
*`StartsWith` - Finds items that start with the entered characters.
33
-
*`Contains` - Finds items that contain the entered characters as a substring.
34
-
*`EndsWith` - Finds items that end with the entered characters.
32
+
*`StartsWith` - This filter type searches for items that start with the entered characters.
33
+
*`Contains` - This filter type searches for items that contain the entered characters as a substring.
34
+
*`EndsWith` - This filter type searches for items that end with the entered characters.
35
35
36
36
{% highlight razor %}
37
37
@@ -41,29 +41,29 @@ The [FilterType](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDow
41
41
42
42
## Allow spacing between search
43
43
44
-
The [AllowSpaces](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_AllowSpaces) property controls whether spaces are allowed within the search term after the mention character.
45
-
- When `true`, typing a space continues filtering (for example, “John Sm” matches “John Smith”).
46
-
- When `false` (default), pressing space ends the mention search and the list is not filtered on space key press.
44
+
The [AllowSpaces](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_AllowSpaces) property is used to control whether spaces are allowed in the middle of the mention or not. If `AllowSpaces` is set to `true`, the Mention component will allow spaces in the middle of the mention and the data source will be filtered accordingly. If `AllowSpaces` is set to `false`, the Mention component will not allow spaces in the middle of the mention and the data source will not be filtered on space key press.
45
+
46
+
> By default, the `AllowSpaces` property is disabled, and the space ends the Mention component search.

54
+

55
55
56
56
## Customize the suggestion item count
57
57
58
-
The [SuggestionCount](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_SuggestionCount) property sets the maximum number of items displayed in the suggestion list. By default, `SuggestionCount` is `25`. Set it to any integer value to increase or reduce the number of visible suggestions.
58
+
The [SuggestionCount](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.DropDowns.SfMention-1.html#Syncfusion_Blazor_DropDowns_SfMention_1_SuggestionCount) property allows you to specify the number of list items that should be displayed in the suggestion list. By default, the `SuggestionCount`property is set to `25`, which means that the Mention component will display up to `25` list items in the suggestion list. The `SuggestionCount` property can be set to any integer value.
0 commit comments