[]
        
(Showing Draft Content)

C1.Web.Mvc.InputColor

InputColor Class

The InputColor control allows users to select colors by typing in HTML-supported color strings, or to pick colors from a drop-down that shows a ColorPicker control.

Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public class InputColor : DropDown, IHtmlString, ITemplate, IDropDown

Constructors

Name Description
InputColor(HtmlHelper, string)

Creates one InputColor instance.

Properties

Name Description
IsRequired

Gets or 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

Occurs when invalid input is detected.

OnClientValueChanged

Occurs after a new color is selected.

Palette

Gets or sets an array that contains the colors in the palette.

ShowAlphaChannel

Gets or sets a value indicating whether the ColorPicker allows users to edit the color's alpha channel (transparency).

ShowColorString

Gets or sets a value indicating whether the ColorPicker shows a string representation of the current color.

Value

Gets or sets the current color.

Extension Methods