Class TreeMapLeafColorMapping
Sets and gets the properties on leaf item color mapping of the treemap component.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.TreeMap
Assembly: Syncfusion.Blazor.dll
Syntax
public class TreeMapLeafColorMapping : ColorMapping, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
TreeMapLeafColorMapping()
Declaration
public TreeMapLeafColorMapping()
Properties
ChildContent
Sets and gets the content of the UI element.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A RenderFragment that represents the content to be rendered inside the component. |
Remarks
This property allows you to set custom content for the leaf item of the treemap component.
LeafValue
Sets and gets the value for the color-mapping from the data source.
Declaration
[Parameter]
public string LeafValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the leaf value used in color mapping. |
Remarks
The LeafValue is used to determine the color of the leaf items based on the specified color mapping.
Methods
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |
Overrides
OnParametersSetAsync()
Method invoked when the component has received parameters from its parent in the render tree and the incoming values have been assigned to properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | A Task representing the asynchronous operation. |