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
AriaLabel
Describe the aria-label attribute for the component.
Declaration
public string AriaLabel { get; set; }
Property Value
System.String
|
Enabled
Specifies if the ColorGradient is in an enabled or disabled state.
The default value is true
and the component accepts user interaction.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
Format
Specifies the value format, which users see initially. Supports Rgb and Hex formats. The default value is Rgb.
Declaration
public ColorFormat Format { get; set; }
Property Value
ColorFormat
|
Implements
FormatChanged
Fires when the user clicks on the toggle button, which changes the input format.
Declaration
public EventCallback<ColorFormat> FormatChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<ColorFormat>
|
Formats
Defines the available color formats, which the user can see or use to select a color. The default list contains Rgb and Hex formats.
Declaration
public IEnumerable<ColorFormat> Formats { get; set; }
Property Value
System.Collections.Generic.IEnumerable<ColorFormat>
|
Implements
ShowOpacityEditor
Defines the visibility of the opacity slider. Default value is true
. When opacity is disabled, the ColorPicker Value will not include an alpha part.
Declaration
public bool ShowOpacityEditor { get; set; }
Property Value
System.Boolean
|
Implements
TabIndex
Declaration
public Nullable<int> TabIndex { get; set; }
Property Value
System.Nullable<System.Int32>
|
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
The event fires when the value of the ColorGradient changes.
Declaration
public EventCallback<string> ValueChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<System.String>
|
ValueFormat
Defines the color format, which the component will return in the application code. Supports Rgb and Hex formats. The 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
|