Class RadzenColorPicker
RadzenColorPicker component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenColorPicker : FormComponent<string>, IDisposable, IRadzenFormComponent
Examples
<RadzenColorPicker @bind-Value=@color Change=@(args => Console.WriteLine($"Selected color: {args}")) />
Properties
AlphaText
Gets or sets the alpha label text.
Declaration
public string AlphaText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The alpha text. |
BlueText
Gets or sets the blue color label text.
Declaration
public string BlueText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The blue text. |
ButtonText
Gets or sets the button text.
Declaration
public string ButtonText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The button text. |
ChildContent
Gets or sets the child content.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
Close
Gets or sets the close callback.
Declaration
public EventCallback Close { get; set; }
Property Value
Type | Description |
---|---|
EventCallback | The close callback. |
GreenText
Gets or sets the green color label text.
Declaration
public string GreenText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The green text. |
HexText
Gets or sets the hexadecimal color label text.
Declaration
public string HexText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The hexadecimal text. |
Icon
Gets or sets the icon.
Declaration
public string Icon { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon. |
IconColor
Gets or sets the icon color.
Declaration
public string IconColor { get; set; }
Property Value
Type | Description |
---|---|
System.String | The icon color. |
Open
Gets or sets the open callback.
Declaration
public EventCallback Open { get; set; }
Property Value
Type | Description |
---|---|
EventCallback | The open callback. |
PopupRenderMode
Gets or sets the render mode.
Declaration
public PopupRenderMode PopupRenderMode { get; set; }
Property Value
Type | Description |
---|---|
PopupRenderMode | The render mode. |
RedText
Gets or sets the red color label text.
Declaration
public string RedText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The red text. |
ShowButton
Gets or sets a value indicating whether button is shown.
Declaration
public bool ShowButton { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowColors
Gets or sets a value indicating whether colors are shown.
Declaration
public bool ShowColors { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowHSV
Gets or sets a value indicating whether HSV is shown.
Declaration
public bool ShowHSV { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowRGBA
Gets or sets a value indicating whether RGBA is shown.
Declaration
public bool ShowRGBA { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ToggleAriaLabel
Gets or sets the toggle popup aria label text.
Declaration
public string ToggleAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String | The toggle popup aria label text. |
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnInitialized()
Called by the Blazor runtime.
Declaration
protected override void OnInitialized()
Overrides
SetParametersAsync(ParameterView)
Sets the parameters asynchronous.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task | Task. |