Search results

Render Palette alone in ASP.NET Core ColorPicker control

25 Oct 2021 / 1 minute to read

To render the Palette alone in ColorPicker, specify the mode property as Palette, and set the modeSwitcher property to false.

In the following sample, the showButtons property is disabled to hide the control buttons and it renders only the Palette area.

Copied to clipboard
<div class='wrap'>
    <h4>Choose Color</h4>
    <ejs-colorpicker id="element" mode="Palette" modeSwitcher="false" showButtons="false"></ejs-colorpicker>

    .wrap {
        margin: 0 auto;
        width: 300px;
        text-align: center;
Copied to clipboard
public ActionResult PaletteAlone()
            return View();

To render Picker alone specify the mode property as ‘Picker’.