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
CssClass
public string? CssClass { get; set; }
Property Value
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
UserValues
Values specified by the user. Used to replace values who support expression during runtime .
public Dictionary<string, object?> UserValues { get; set; }
Property Value
Visible
public bool Visible { get; set; }
Property Value
Methods
GetAttr(string)
public string GetAttr(string key)
Parameters
key
string
Returns
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
SetAttr(string, string?)
public void SetAttr(string key, string? value)
Parameters
SetUserValues(string, object?)
Add or update a value in UserValues.
If exists, insert it, else, update it.
public void SetUserValues(string field, object? value)