ASP.NET Core - EJ2

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColorPicker - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ColorPicker

    Inheritance
    System.Object
    EJTagHelper
    ColorPicker
    Inherited Members
    EJTagHelper.GetList()
    EJTagHelper.Process(TagHelperContext, TagHelperOutput)
    EJTagHelper.RegisterScript()
    EJTagHelper.GetSerializedProperties()
    EJTagHelper.GetScriptString()
    EJTagHelper.GetHtmlAttrString(IDictionary<String, Object>)
    EJTagHelper.ViewContext
    EJTagHelper.Id
    EJTagHelper.IsChild
    EJTagHelper.IsComplex
    EJTagHelper.IsCollection
    EJTagHelper.ParentPropertyName
    Namespace: Syncfusion.EJ2.Inputs
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ColorPicker : EJTagHelper

    Constructors

    ColorPicker()

    Declaration
    public ColorPicker()

    Properties

    BeforeClose

    Triggers before closing the ColorPicker popup.

    Declaration
    public string BeforeClose { get; set; }
    Property Value
    Type Description
    System.String

    BeforeModeSwitch

    Triggers before Switching between ColorPicker mode.

    Declaration
    public string BeforeModeSwitch { get; set; }
    Property Value
    Type Description
    System.String

    BeforeOpen

    Triggers before opening the ColorPicker popup.

    Declaration
    public string BeforeOpen { get; set; }
    Property Value
    Type Description
    System.String

    BeforeTileRender

    Trigger while rendering each palette tile.

    Declaration
    public string BeforeTileRender { get; set; }
    Property Value
    Type Description
    System.String

    Change

    Triggers while changing the colors. It will be triggered based on the showButtons property. If the property is false, the event will be triggered while selecting the colors. If the property is true, the event will be triggered while apply the selected color.

    Declaration
    public string Change { get; set; }
    Property Value
    Type Description
    System.String

    ClassName

    Declaration
    protected override string ClassName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    EJTagHelper.ClassName

    Columns

    It is used to render the ColorPicker palette with specified columns.

    Declaration
    public double Columns { get; set; }
    Property Value
    Type Description
    System.Double

    Created

    Triggers once the component rendering is completed.

    Declaration
    public string Created { get; set; }
    Property Value
    Type Description
    System.String

    CreatePopupOnClick

    Specifies the popup element creation on open.

    Declaration
    public bool CreatePopupOnClick { get; set; }
    Property Value
    Type Description
    System.Boolean

    CssClass

    This property sets the CSS classes to root element of the ColorPicker which helps to customize the UI styles.

    Declaration
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    Disabled

    It is used to enable / disable ColorPicker component. If it is disabled the ColorPicker popup won’t open.

    Declaration
    public bool Disabled { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnableOpacity

    It is used to enable / disable the opacity option of ColorPicker component.

    Declaration
    public bool EnableOpacity { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnablePersistence

    To enable or disable persisting component's state between page reloads and it is extended from component class.

    Declaration
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    For

    Declaration
    public override ModelExpression For { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression
    Overrides
    EJTagHelper.For

    HtmlAttributes

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public object HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Object

    Inline

    It is used to render the ColorPicker component as inline.

    Declaration
    public bool Inline { get; set; }
    Property Value
    Type Description
    System.Boolean

    IsFor

    Declaration
    protected override bool IsFor { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    EJTagHelper.IsFor

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public string Locale { get; set; }
    Property Value
    Type Description
    System.String

    Mode

    It is used to render the ColorPicker with the specified mode.

    Declaration
    public ColorPickerMode Mode { get; set; }
    Property Value
    Type Description
    ColorPickerMode

    ModeSwitcher

    It is used to show / hide the mode switcher button of ColorPicker component.

    Declaration
    public bool ModeSwitcher { get; set; }
    Property Value
    Type Description
    System.Boolean

    NameSpace

    Declaration
    protected override string NameSpace { get; }
    Property Value
    Type Description
    System.String
    Overrides
    EJTagHelper.NameSpace

    NoColor

    It is used to enable / disable the no color option of ColorPicker component.

    Declaration
    public bool NoColor { get; set; }
    Property Value
    Type Description
    System.Boolean

    OnModeSwitch

    Triggers after Switching between ColorPicker mode.

    Declaration
    public string OnModeSwitch { get; set; }
    Property Value
    Type Description
    System.String

    Open

    Triggers while opening the ColorPicker popup.

    Declaration
    public string Open { get; set; }
    Property Value
    Type Description
    System.String

    PresetColors

    It is used to load custom colors to palette.

    Declaration
    public object PresetColors { get; set; }
    Property Value
    Type Description
    System.Object

    Select

    Triggers while selecting the color in picker / palette, when showButtons property is enabled.

    Declaration
    public string Select { get; set; }
    Property Value
    Type Description
    System.String

    ShowButtons

    It is used to show / hide the control buttons (apply / cancel) of ColorPicker component.

    Declaration
    public bool ShowButtons { get; set; }
    Property Value
    Type Description
    System.Boolean

    TagName

    Declaration
    protected override string TagName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    EJTagHelper.TagName

    Value

    It is used to set the color value for ColorPicker. It should be specified as Hex code.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved