Table of Contents

Class RadzenColorPicker

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

RadzenColorPicker component.

public class RadzenColorPicker : FormComponent<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
Inheritance
RadzenColorPicker
Implements
Inherited Members

Examples

<RadzenColorPicker @bind-Value=@color Change=@(args => Console.WriteLine($"Selected color: {args}")) />

Constructors

RadzenColorPicker()

public RadzenColorPicker()

Properties

AlphaText

Gets or sets the alpha label text.

[Parameter]
public string AlphaText { get; set; }

Property Value

string

The alpha text.

BlueText

Gets or sets the blue color label text.

[Parameter]
public string BlueText { get; set; }

Property Value

string

The blue text.

ButtonText

Gets or sets the button text.

[Parameter]
public string ButtonText { get; set; }

Property Value

string

The button text.

ChildContent

Gets or sets the child content.

[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

The child content.

Close

Gets or sets the close callback.

[Parameter]
public EventCallback Close { get; set; }

Property Value

EventCallback

The close callback.

GreenText

Gets or sets the green color label text.

[Parameter]
public string GreenText { get; set; }

Property Value

string

The green text.

HexText

Gets or sets the hexadecimal color label text.

[Parameter]
public string HexText { get; set; }

Property Value

string

The hexadecimal text.

Icon

Gets or sets the icon.

[Parameter]
public string Icon { get; set; }

Property Value

string

The icon.

IconColor

Gets or sets the icon color.

[Parameter]
public string IconColor { get; set; }

Property Value

string

The icon color.

Open

Gets or sets the open callback.

[Parameter]
public EventCallback Open { get; set; }

Property Value

EventCallback

The open callback.

PopupRenderMode

Gets or sets the render mode.

[Parameter]
public PopupRenderMode PopupRenderMode { get; set; }

Property Value

PopupRenderMode

The render mode.

RedText

Gets or sets the red color label text.

[Parameter]
public string RedText { get; set; }

Property Value

string

The red text.

ShowButton

Gets or sets a value indicating whether button is shown.

[Parameter]
public bool ShowButton { get; set; }

Property Value

bool

true if button shown; otherwise, false.

ShowColors

Gets or sets a value indicating whether colors are shown.

[Parameter]
public bool ShowColors { get; set; }

Property Value

bool

true if colors are shown; otherwise, false.

ShowHSV

Gets or sets a value indicating whether HSV is shown.

[Parameter]
public bool ShowHSV { get; set; }

Property Value

bool

true if HSV is shown; otherwise, false.

ShowRGBA

Gets or sets a value indicating whether RGBA is shown.

[Parameter]
public bool ShowRGBA { get; set; }

Property Value

bool

true if RGBA is shown; otherwise, false.

ToggleAriaLabel

Gets or sets the toggle popup aria label text.

[Parameter]
public string ToggleAriaLabel { get; set; }

Property Value

string

The toggle popup aria label text.

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

GetComponentCssClass()

protected override string GetComponentCssClass()

Returns

string

OnInitialized()

protected override void OnInitialized()

SetParametersAsync(ParameterView)

public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView

Returns

Task