ClassTelerikColorPicker
The class for the Telerik ColorPicker component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikColorPicker : ColorEditorBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>ColorEditorBaseTelerikColorPicker
Implements:
Inherited Members
Constructors
TelerikColorPicker()
Declaration
public TelerikColorPicker()
Properties
AdaptiveMode
Defines if the component will adapt and automatically change its rendering based on the current screen size. Default value is None.
Declaration
[Parameter]
public AdaptiveMode AdaptiveMode { get; set; }
Property Value
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
[Parameter]
public RenderFragment ColorPickerViews { get; set; }
Property Value
FillMode
Specifies the fill mode of the ColorPicker. Default value is Solid.
Declaration
[Parameter]
public string FillMode { get; set; }
Property Value
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.
OnClose
Defines the OnClose Event which is fired before the popup of the ColorPicker is closed.
Declaration
[Parameter]
public EventCallback<ColorPickerCloseEventArgs> OnClose { get; set; }
Property Value
OnOpen
Defines the OnOpen Event which is fired before the popup of the ColorPicker is opened.
Declaration
[Parameter]
public EventCallback<ColorPickerOpenEventArgs> OnOpen { get; set; }
Property Value
PopupClass
Specifies a popup class to be rendered on the popup.
Declaration
[Parameter]
public string PopupClass { get; set; }
Property Value
Title
Specifies a title attribute to be rendered on the chooser button.
ValueTemplate
Defines the RenderFragment to be displayed in the chooser button instead of the default colored square.
Declaration
[Parameter]
public RenderFragment ValueTemplate { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides