ClassTelerikSvgIcon
Class
The class for the Telerik SVG Icon component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
cs-api-definition
public class TelerikSvgIcon : IconBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentIconBaseTelerikSvgIcon
Implements:
Inherited Members
Constructors
TelerikSvgIcon()
Declaration
cs-api-definition
public TelerikSvgIcon()
Properties
ChildContent
Defines the child content of the component. Use to render custom svg markup.
Declaration
cs-api-definition
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Icon
Specifies a predefined Telerik icon to be rendered. Takes precedence over custom icons defined within ChildContent. Refer to SvgIcon Documentation for more information.
Declaration
cs-api-definition
[Parameter]
public ISvgIcon Icon { get; set; }
Property Value
ISvgIcon
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnParametersSet()
Declaration
cs-api-definition
protected override void OnParametersSet()
Overrides
ThrowIfNoIconIsProvided()
Declaration
cs-api-definition
public void ThrowIfNoIconIsProvided()