TelerikColorGradient
A component that lets you pick a color with a gradient canvas, hue/alpha sliders, and format toggle. Supports RGB/HEX formats, optional opacity editor, size variants, ARIA labeling, keyboard focus handling, and two-way value binding.
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
public TelerikColorGradient()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public override Task SetParametersAsync(ParameterView parameters)
Overrides:
Properties
[Accessibility] Describe the aria-label attribute for the component.
[Parameter]
public string AriaLabel { get; set; }
Specifies if the ColorGradient is in an enabled or disabled state.
The default value is true and the component accepts user interaction.
[Parameter]
public bool Enabled { get; set; }
Fires when the user clicks on the toggle button, which changes the input format.
[Parameter]
public EventCallback<ColorFormat> FormatChanged { get; set; }
Defines the visibility of the opacity slider. Default value is true. When opacity is disabled, the ColorPicker Value will not include an alpha part.
[Parameter]
public bool ShowOpacityEditor { get; set; }
Implements:
[Accessibility] Specifies the tab index of the component for keyboard navigation.
[Parameter]
public int? TabIndex { get; set; }
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).
[Parameter]
public string Value { get; set; }
The event fires when the value of the ColorGradient changes.
[Parameter]
public EventCallback<string> ValueChanged { get; set; }