[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.ColorPickerBuilder

ColorPickerBuilder Class

Defines a builder to configurate ColorPicker.

Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public class ColorPickerBuilder : InputBaseBuilder<ColorPicker, ColorPickerBuilder>, IHtmlString

Constructors

Name Description
ColorPickerBuilder(ColorPicker)

Creates one ColorPickerBuilder instance to configurate component.

Methods

Name Description
OnClientValueChanged(string)

Configurates the OnClientValueChanged client event. Occurs after a new color is selected.

Palette(List<Color>)

Sets the Palette property.

Palette(params Color[])

Sets the Palette property.

ShowAlphaChannel(bool)

Configurates ShowAlphaChannel. Sets a value indicating whether the ColorPicker allows users to edit the color's alpha channel (transparency).

ShowColorString(bool)

Configurates ShowColorString. Sets a value indicating whether the ColorPicker shows a string representation of the current color.

Value(Color)

Sets the currently selected color.

Extension Methods