Represents the Essential JS 2 VueJS ColorPicker Component
<ejs-colorpicker></ejs-colorpicker>
number
It is used to render the ColorPicker palette with specified columns.
Defaults to 10
boolean
Specifies the popup element creation on open.
Defaults to false
string
This property sets the CSS classes to root element of the ColorPicker which helps to customize the UI styles.
Defaults to ”
boolean
It is used to enable / disable ColorPicker component. If it is disabled the ColorPicker popup won’t open.
Defaults to false
boolean
It is used to enable / disable the opacity option of ColorPicker component.
Defaults to true
boolean
To enable or disable persisting component’s state between page reloads and it is extended from component class.
Defaults to false
boolean
Enable or disable rendering component in right to left direction.
Defaults to false
boolean
It is used to render the ColorPicker component as inline.
Defaults to false
string
Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.
Defaults to ”
It is used to render the ColorPicker with the specified mode.
Defaults to ‘Picker’
boolean
It is used to show / hide the mode switcher button of ColorPicker component.
Defaults to true
boolean
It is used to enable / disable the no color option of ColorPicker component.
Defaults to false
{ : }
It is used to load custom colors to palette.
Defaults to null
boolean
It is used to show / hide the control buttons (apply / cancel) of ColorPicker component.
Defaults to true
string
It is used to set the color value for ColorPicker. It should be specified as Hex code.
Defaults to ‘#008000ff’
Removes the component from the DOM and detaches all its related event handlers. Also it maintains the initial input element from the DOM.
Returns void
Sets the focus to Colorpicker its native method
Returns void
Gets the properties to be maintained in the persisted state.
Returns string
To get color value in specified type.
Parameter | Type | Description |
---|---|---|
value (optional) | string |
Specify the color value. |
type (optional) | string |
Specify the type to which the specified color needs to be converted. |
Returns string
To show/hide ColorPicker popup based on current state of the SplitButton.
Returns void
EmitType<BeforeOpenCloseEventArgs>
Triggers before closing the ColorPicker popup.
Triggers before Switching between ColorPicker mode.
EmitType<BeforeOpenCloseEventArgs>
Triggers before opening the ColorPicker popup.
EmitType<PaletteTileEventArgs>
Trigger while rendering each palette tile.
EmitType<ColorPickerEventArgs>
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.
EmitType<Event>
Triggers once the component rendering is completed.
Triggers after Switching between ColorPicker mode.
Triggers while opening the ColorPicker popup.
EmitType<ColorPickerEventArgs>
Triggers while selecting the color in picker / palette, when showButtons property is enabled.