[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.InputColorBuilder

InputColorBuilder Class

Defines a builder to configurate InputColor.

Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public class InputColorBuilder : DropDownBuilder<InputColor, InputColorBuilder>, IHtmlString

Constructors

Name Description
InputColorBuilder(InputColor)

Creates one InputColorBuilder instance to configurate component.

Methods

Name Description
IsRequired(bool)

Configurates IsRequired. Sets a value indicating whether the control value must be a color or whether it can be set to null (by deleting the content of the control).

OnClientInvalidInput(string)

Configurates the OnClientInvalidInput client event. Occurs when invalid input is detected.

OnClientValueChanged(string)

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

Palette(List<Color>)

Configurates Palette. Sets an array that contains the colors in the palette.

Palette(params Color[])

Configurates Palette. Sets an array that contains the colors in the palette.

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 current color.

Extension Methods