Class
ColorEditorBase

The Base Class for the ColorPicker and ColorPicker components.

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
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>.ValidateOnBaseComponent.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.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>)

Constructors

ColorEditorBase()

Declaration

cs-api-definition
public ColorEditorBase()

Properties

OnBlur

Declaration

cs-api-definition
public EventCallback OnBlur { get; set; }

Property Value

EventCallback

ShowButtons

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

Declaration

cs-api-definition
[Parameter]
public bool ShowButtons { get; set; }

Property Value

bool

ShowClearButton

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

Declaration

cs-api-definition
[Parameter]
public bool ShowClearButton { get; set; }

Property Value

bool

ShowPreview

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

Declaration

cs-api-definition
[Parameter]
public bool ShowPreview { get; set; }

Property Value

bool

ValueFormat

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

Declaration

cs-api-definition
[Parameter]
public ColorFormat ValueFormat { get; set; }

Property Value

ColorFormat

View

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

Declaration

cs-api-definition
[Parameter]
public ColorPickerView View { get; set; }

Property Value

ColorPickerView

ViewChanged

Fires when the user toggles between the popup views.

Declaration

cs-api-definition
[Parameter]
public EventCallback<ColorPickerView> ViewChanged { get; set; }

Property Value

EventCallback<ColorPickerView>

Methods

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides TelerikInputBase<string>.OnParametersSetAsync()