New to Telerik UI for BlazorStart a free 30-day trial

The Base Class for the ColorPicker and ColorPicker components.

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class ColorEditorBase : TelerikInputBase<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>ColorEditorBase

Derived Classes: TelerikColorPickerTelerikFlatColorPicker

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TelerikInputBase<string>.SetParametersAsync(ParameterView)TelerikInputBase<string>.OnInitializedAsync()TelerikInputBase<string>.Dispose()TelerikInputBase<string>.FocusAsync()TelerikInputBase<string>.CascadedEditContextTelerikInputBase<string>.FloatingLabelTelerikInputBase<string>.IdTelerikInputBase<string>.EnabledTelerikInputBase<string>.TabIndexTelerikInputBase<string>.ValueExpressionTelerikInputBase<string>.ValueChangedTelerikInputBase<string>.ValueTelerikInputBase<string>.OnChangeTelerikInputBase<string>.AriaLabelTelerikInputBase<string>.AriaLabelledByTelerikInputBase<string>.AriaDescribedByTelerikInputBase<string>.ValidateOnTelerikInputBase<string>.InputModeBaseComponent.ShouldRender()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)...

Constructors

C#
public ColorEditorBase()

Methods

C#
protected override Task OnParametersSetAsync()
Returns:

Task

Overrides: TelerikInputBase<string>.OnParametersSetAsync()

Properties

C#
public EventCallback OnBlur { get; set; }

Specifies if Apply and Cancel buttons should be rendered. Default value is true.

C#
[Parameter]
public bool ShowButtons { get; set; }

Specifies whether Clear button should be rendered. Default value is true.

C#
[Parameter]
public bool ShowClearButton { get; set; }

Specifies whether preview functionality is enabled. Default value is true.

C#
[Parameter]
public bool ShowPreview { get; set; }

Specifies the Size of the ColorPicker. Default value is Medium.

C#
[Parameter]
public string Size { get; set; }

Specifies the color format, which the component will return in the application code. Default value is Rgb.

C#
[Parameter]
public ColorFormat ValueFormat { get; set; }

Specifies the default selected view. The default selected view is Gradient. Supports two-way binding.

C#
[Parameter]
public ColorPickerView View { get; set; }

Fires when the user toggles between the popup views.

C#
[Parameter]
public EventCallback<ColorPickerView> ViewChanged { get; set; }