TextArea
ClassNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class TextArea : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposableConstructors
1| Name | Type | Description |
|---|---|---|
TextArea() | Constructor | — |
Properties
25| Name | Type | Description |
|---|---|---|
Behavior | ||
IsFocusedChanged | EventCallback<Boolean> | — |
Appearance | ||
Background | Color | — |
CharacterStyle | Func<Int32, Style> | — |
Height | Int32 | — |
PlaceholderForeground | Color | — |
RowStyle | Func<Int32, Style> | — |
Width | Int32 | — |
Events | ||
OnActivatePosition | EventCallback<Int32> | — |
OnChanged | EventCallback | — |
OnCommand | EventCallback<KeyboardEventArgs> | — |
OnCopy | EventCallback<String> | — |
OnOpenLink | EventCallback<String> | — |
OnPreviewKey | System.Func<Microsoft.AspNetCore.Components.Web.KeyboardEventArgs,System.Threading.Tasks.Task{System.Boolean>} | Sees each key first; return true to consume it. A consumed Tab does not move focus only when the returned task is already complete, so decide before the first real await, like preventDefault in a browser: input does not wait for an async handler before it applies the key's default action. |
OnSubmit | EventCallback<String> | Called with the buffer's text when Enter submits. The buffer is cleared before this runs, so keys typed while an async handler awaits start the next message. To keep the text when submitting fails, set it back on Buffer in the handler. |
Other | ||
Buffer | TextSelectionState | — |
CanActivatePosition | Func<Int32, Boolean> | — |
CanSubmit | Boolean | — |
ContinuationIndent | Int32 | — |
ContinuationIndentAt | Func<Int32, Int32> | — |
Editable | Boolean | — |
FollowOutput | Boolean | — |
Hook | String | — |
ManageTab | Boolean | — |
Placeholder | String | — |
WordWrap | Boolean | — |
Methods
3| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | Renders the component to the supplied RenderTreeBuilder. |
Dispose() | Method | — |
OnParametersSet() | Method | Method invoked when the component has received parameters from its parent in the render tree, and the incoming values have been assigned to properties. |