[]
        
(Showing Draft Content)

C1.Web.Mvc.TagHelpers.InputColorTagHelper

InputColorTagHelper Class

ITagHelper implementation for InputColor.

Namespace: C1.Web.Mvc.TagHelpers
Assembly: C1.AspNetCore.Mvc.dll
Syntax
[HtmlTargetElement("c1-input-color")]
public class InputColorTagHelper : DropDownTagHelper<InputColor>, ITagHelper, ITagHelperComponent, ITemplateTagHelper

Constructors

Name Description
InputColorTagHelper()

Properties

Name Description
InvalidInput

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

IsRequired

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).

Palette

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

ShowAlphaChannel

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

ShowColorString

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

Value

Gets or Sets the current color.

ValueChanged

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

Methods

Name Description
ProcessAttributes(TagHelperContext, object)

Processes the attributes set in the taghelper.