ClassTelerikColorGradient
The class for the Telerik ColorGradient Component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikColorGradient : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IColorGradientSettings
Inheritance: objectComponentBaseBaseComponentTelerikColorGradient
Implements:
Inherited Members
Constructors
TelerikColorGradient()
Declaration
public TelerikColorGradient()
Properties
AriaLabel
Describe the aria-label attribute for the component.
Declaration
[Parameter]
public string AriaLabel { get; set; }
Property Value
Enabled
Specifies if the ColorGradient is in an enabled or disabled state.
The default value is true
and the component accepts user interaction.
Format
Specifies the value format, which users see initially. Supports Rgb and Hex formats. The default value is Rgb.
Declaration
[Parameter]
public ColorFormat Format { get; set; }
Property Value
Implements
FormatChanged
Fires when the user clicks on the toggle button, which changes the input format.
Declaration
[Parameter]
public EventCallback<ColorFormat> FormatChanged { get; set; }
Property Value
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
[Parameter]
public IEnumerable<ColorFormat> Formats { get; set; }
Property Value
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
[Parameter]
public bool ShowOpacityEditor { get; set; }
Property Value
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).
ValueChanged
The event fires when the value of the ColorGradient changes.
Declaration
[Parameter]
public EventCallback<string> ValueChanged { get; set; }
Property Value
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
[Parameter]
public ColorFormat ValueFormat { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides