Class ColorPickerMode
Defines the display modes for the SfColorPicker component.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class ColorPickerMode : Enum
Remarks
This enumeration specifies how the SfColorPicker interface is presented to users. The picker mode provides full color selection capabilities with a color palette and various controls, while the palette mode displays a predefined set of colors for quick selection.
Fields
Palette
Displays the color picker in palette mode with predefined color swatches.
Declaration
public const ColorPickerMode Palette
Field Value
Type |
---|
ColorPickerMode |
Remarks
In palette mode, the SfColorPicker shows a grid of predefined color swatches that users can select from. This mode is ideal when you want to limit color choices to a specific set of colors and provide a simpler selection interface.
Picker
Displays the color picker in picker mode with full color selection interface.
Declaration
public const ColorPickerMode Picker
Field Value
Type |
---|
ColorPickerMode |
Remarks
In picker mode, the SfColorPicker provides a comprehensive color selection interface including a color palette, hue slider, opacity slider, and input fields for different color formats. This mode offers the most flexibility for color selection and customization.