Class CellDOM
Handles cell and row customization.
Inherited Members
Namespace: Syncfusion.Blazor.Grids
Assembly: Syncfusion.Blazor.dll
Syntax
public class CellDOM
Remarks
An instance of this class is passed in QueryCellInfo and RowDataBound events as argument through which the conditional class and styles can be added to cell/row.
Constructors
CellDOM(List<string>, List<string>, IDictionary<string, object>)
Declaration
public CellDOM(List<string> classList = null, List<string> styleList = null, IDictionary<string, object> attributeList = null)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | classList | |
| List<string> | styleList | |
| IDictionary<string, object> | attributeList |
Methods
AddClass(string[])
Add multiple class names to the specific cell.
Declaration
public void AddClass(string[] classList)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | classList | List of class names. |
AddItem(List<string>, string[])
Add array of values to the list.
Declaration
protected void AddItem(List<string> AddTo, string[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| List<string> | AddTo | Source list to be added. |
| string[] | values | Array values to be added to the list. |
AddStyle(string[])
Add multiple style rules to the specific cell.
Declaration
public void AddStyle(string[] styles)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | styles | List of style rules. |
SetAttribute(IDictionary<string, object>)
Add attributes to the given DOM element.
Declaration
public void SetAttribute(IDictionary<string, object> attributes)
Parameters
| Type | Name | Description |
|---|---|---|
| IDictionary<string, object> | attributes | List of key and values to be added. |