Class TelerikColorGradient
The class for the Telerik ColorGradient Component.
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikColorGradient : BaseComponent, IDisposable, IColorGradientSettings
Constructors
TelerikColorGradient()
Declaration
public TelerikColorGradient()
Properties
Enabled
Defines whether the component is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
Format
Specifies the default format in the view. ColorPicker support rgb, hex. Default value is Rgb.
Declaration
public ColorFormat Format { get; set; }
Property Value
ColorFormat
|
Implements
FormatChanged
Fires when the format is changed through the switch button.
Declaration
public EventCallback<ColorFormat> FormatChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<ColorFormat>
|
Formats
Specifies the formats displayed for editing in the gradient view. Default value contains rgb and hex.
Declaration
public IEnumerable<ColorFormat> Formats { get; set; }
Property Value
System.Collections.Generic.IEnumerable<ColorFormat>
|
Implements
ShowOpacityEditor
Specifies whether the opacity slider should be rendered. Default value is true
. When opacity is disabled - the alpha slider and alpha input from the colorformats are not rendered.
Declaration
public bool ShowOpacityEditor { get; set; }
Property Value
System.Boolean
|
Implements
Value
Specifies the color value of the component in a valid css format - hexadecimal (ex: #fff, #ffffff, #ffffff70) and rgb (ex: rgb(0, 0, 0), rgba(0,0,0, 0.6).
Declaration
public string Value { get; set; }
Property Value
System.String
|
ValueChanged
Fires when the value is changed.
Declaration
public EventCallback<string> ValueChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<System.String>
|
ValueFormat
Specifies the value format in the view. Default value is Rgb.
Declaration
public ColorFormat ValueFormat { get; set; }
Property Value
ColorFormat
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|
Overrides
OnParametersSetAsync()
Declaration
protected override Task OnParametersSetAsync()
Returns
System.Threading.Tasks.Task
|
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Microsoft.AspNetCore.Components.ParameterView
parameters
|
Returns
System.Threading.Tasks.Task
|