Table of Contents

Class ComponentBase

Namespace
JJMasterData.Core.UI.Components
Assembly
JJMasterData.Core.dll

Base class of every component that renders to HTML. Every public component inherits from this class.

public abstract class ComponentBase
Inheritance
ComponentBase
Derived
Inherited Members

Properties

Attributes

HTML attributes represented by key/value pairs

public Dictionary<string, string> Attributes { get; set; }

Property Value

Dictionary<string, string>

CssClass

public string? CssClass { get; set; }

Property Value

string

Name

Represents the component unique identifier. The name will be sent to the client, do not expose table names and/or sensitive data.

public string Name { get; set; }

Property Value

string

UserValues

Values specified by the user. Used to replace values who support expression during runtime .

public Dictionary<string, object?> UserValues { get; set; }

Property Value

Dictionary<string, object>

Visible

public bool Visible { get; set; }

Property Value

bool

Methods

GetAttr(string)

public string GetAttr(string key)

Parameters

key string

Returns

string

SetAttr(Dictionary<string, object?>?)

public void SetAttr(Dictionary<string, object?>? values)

Parameters

values Dictionary<string, object>

SetAttr(string, object?)

public void SetAttr(string key, object? value)

Parameters

key string
value object

SetAttr(string, string?)

public void SetAttr(string key, string? value)

Parameters

key string
value string

SetUserValues(string, object?)

Add or update a value in UserValues.
If exists, insert it, else, update it.

public void SetUserValues(string field, object? value)

Parameters

field string

Name of the field

value object

Name of the field