TextContextMenu
FreeThe right-click menu of an editable text element: undo, redo, cut, copy, paste and select all, plus commands you add. The editors of RayCraft use it, and it is the way to give your own editor, such as a rich text editor, the same menu.
Example

Parameters
| Parameter | Type | Description |
|---|---|---|
Class | string | Extra CSS classes added to the root element. |
ItemsProvider | Func<TextContextInfo, IReadOnlyList<MenuCommand>> | Returns extra commands for the place that was clicked. |
ReadOnly | bool | Disables cut, paste, undo and redo. |
ShowHistory | bool | Shows undo and redo (default on). |
Style | string | Inline style added to the root element. |
Target | Func<ElementReference> | Returns the element reference the menu belongs to; read again after every render. |
Events
| Event | Type | Description |
|---|---|---|
OnOpening | EventCallback<TextContextInfo> | Raised before the menu is built, with the position, selection and link address. |
Package
TextContextMenu is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.
Send feedbackVersion 1.0.3