Class TelerikColorPicker
The class for the Telerik ColorPicker component.
Inherited Members
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll
Syntax
public class TelerikColorPicker : ColorEditorBase, IDisposable, ILabelableInput, IColorPickerViewContainer
Constructors
TelerikColorPicker()
Declaration
public TelerikColorPicker()
Properties
ColorPickerViews
The ColorPicker popup can display different views. They allow users to select a color from an interface that matches their preferences. The supported views are: Telerik.Blazor.Components.ColorGradient and Telerik.Blazor.Components.ColorPalette. By default, both views are enabled and the gradient view is displayed first.
Declaration
public RenderFragment ColorPickerViews { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
FillMode
Specifies the fill mode of the ColorPicker. Default value is Solid.
Declaration
public string FillMode { get; set; }
Property Value
System.String
|
Icon
Specifies the icon rendered in the picker value. You can use either a predefined Telerik Icon or a custom one. Refer to Icons - Documentation for more information on how icons work.
Declaration
public object Icon { get; set; }
Property Value
System.Object
|
OnClose
Defines the OnClose Event which is fired before the popup of the ColorPicker is closed.
Declaration
public EventCallback<ColorPickerCloseEventArgs> OnClose { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<ColorPickerCloseEventArgs>
|
OnOpen
Defines the OnOpen Event which is fired before the popup of the ColorPicker is opened.
Declaration
public EventCallback<ColorPickerOpenEventArgs> OnOpen { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<ColorPickerOpenEventArgs>
|
PopupClass
Specifies a popup class to be rendered on the popup.
Declaration
public string PopupClass { get; set; }
Property Value
System.String
|
Rounded
Specifies the roundness of the ColorPicker. Default value is Medium.
Declaration
public string Rounded { get; set; }
Property Value
System.String
|
Size
Specifies the Size of the ColorPicker. Default value is Medium.
Declaration
public string Size { get; set; }
Property Value
System.String
|
Title
Specifies a title attribute to be rendered on the chooser button.
Declaration
public string Title { get; set; }
Property Value
System.String
|
ValueTemplate
Defines the RenderFragment to be displayed in the chooser button instead of the default colored square.
Declaration
public RenderFragment ValueTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder
__builder
|
Close()
Closes the popup of the component.
Declaration
public void Close()
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|
Overrides
Open()
Opens the popup of the component.
Declaration
public void Open()