Skip to content

API reference Obsidian.API.Client.Razor

Button class

Vanilla's button with its text, like Button: 200 by 20 pixels unless sized.

public sealed class Button : ScreenPart

In Obsidian.API.Client.

Constructors

public Button();

Properties

Active

public bool Active { get; set; }

Whether it can be pressed.

OnClick

public EventCallback OnClick { get; set; }

Raised on a click, or Enter or Space while it's focused, if it's Button.Active.

public string Text { get; set; }

On this page