TextButton
ClassFor examples and usage details, see the component documentation.
View TextButton ComponentNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class TextButton : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
TextButton() | Constructor | — |
Properties
5| Name | Type | Description |
|---|---|---|
Behavior | ||
FocusOrder | Nullable<Int32> | Tab order for keyboard navigation. Lower values receive focus first. If null , natural document order is used. |
Appearance | ||
BackgroundColor | Color | Background color when not focused. Default is Default. |
FocusedColor | Color | Background color when focused. Default is DeepSkyBlue1. |
Events | ||
OnClick | EventCallback | Event callback invoked when the button is clicked. |
Common | ||
Content | String | Text content displayed on the button. |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | — |