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

5
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.
Events
OnClickEventCallbackEvent callback invoked when the button is clicked.
Common
ContentStringText content displayed on the button.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method