TextButton

Class

For examples and usage details, see the component documentation.

View TextButton Component
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class TextButton : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
TextButton()Constructor—

Properties

7
NameTypeDescription
Behavior
FocusOrderNullable<Int32>Tab order for keyboard navigation. Lower values receive focus first. If null, natural document order is used.
Appearance
BackgroundColorColorBackground color when not focused. Default is Default.
FocusedColorColorBackground color when focused. Default is DeepSkyBlue1.
HoverColorColorBackground used when the pointer is over an actionable button.
HoverForegroundColorColorText color paired with HoverColor.
Events
OnClickEventCallbackEvent callback invoked when the button is clicked.
Common
ContentStringText content displayed on the button.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()MethodRenders the component to the supplied RenderTreeBuilder.