Table of Contents

Class ControlBase

Namespace
JJMasterData.Core.UI.Components
Assembly
JJMasterData.Core.dll
public abstract class ControlBase : ComponentBase
Inheritance
ControlBase
Derived
Inherited Members

Constructors

ControlBase(IFormValues)

protected ControlBase(IFormValues formValues)

Parameters

formValues IFormValues

Properties

Enabled

Property to check if the control is enabled. (Default = true)

public bool Enabled { get; set; }

Property Value

bool

MaxLength

public int MaxLength { get; set; }

Property Value

int

PlaceHolder

Text shown when the component don't have any content.

public string PlaceHolder { get; set; }

Property Value

string

ReadOnly

Property to tell if the control is readonly, but the value is sent to the server.

public bool ReadOnly { get; set; }

Property Value

bool

Text

Value of the component.

public string Text { get; set; }

Property Value

string

Tooltip

Text shown when the component is hovered.

public virtual string Tooltip { get; set; }

Property Value

string

Methods

BuildResultAsync()

protected abstract ValueTask<ComponentResult> BuildResultAsync()

Returns

ValueTask<ComponentResult>

GetHtmlBuilderAsync()

public ValueTask<HtmlBuilder> GetHtmlBuilderAsync()

Returns

ValueTask<HtmlBuilder>

GetResultAsync()

public ValueTask<ComponentResult> GetResultAsync()

Returns

ValueTask<ComponentResult>