Disabled in Color Picker Control
19 Dec 20221 minute to read
To achieve disabled state in ColorPicker, set the disabled property to true
. The ColorPicker pop-up cannot be accessed in disabled state.
<div class='wrap'>
<h4>Disabled state</h4>
@Html.EJS().ColorPicker("element").Disabled(true).Render()
</div>
<style>
.wrap {
margin: 0 auto;
width: 300px;
text-align: center;
}
</style>
public ActionResult Disabled()
{
return View();
}
NOTE