messages Object

Allows customization of "Apply" / "Cancel" labels.

Example

<div id="flatpicker"></div>
<script>
$("#flatpicker").kendoFlatColorPicker({
  buttons: true,
  messages: {
    apply: "Update",
    cancel: "Discard"
  }
});
</script>

messages.apply String

Allows customization of "Apply" label.

Example

<div id="flatpicker"></div>
<script>
$("#flatpicker").kendoFlatColorPicker({
  buttons: true,
  messages: {
    apply: "Update"
  }
});
</script>

messages.cancel String

Allows customization of "Cancel" label.

Example

<div id="flatpicker"></div>
<script>
$("#flatpicker").kendoFlatColorPicker({
  buttons: true,
  messages: {
    cancel: "Discard"
  }
});
</script>

messages.clearColor String (default: "Clear color")

Allows customization of the Clear Color button label.

messages.contrastRatio String (default: "Contrast ratio")

Allows customization of the "Contrast ratio" text in the contrast tool.

messages.fail String (default: "Fail")

Allows customization of the "Fail" text in the contrast tool.

messages.pass String (default: "Pass")

Allows customization of the "Pass" text in the contrast tool.

messages.gradient String (default: "Gradient view")

Allows customization of the Gradient view button.

messages.palette String (default: "Palette view")

Allows customization of the Palette view button.

messages.toggleFormat String (default: "Toggle format")

Allows customization of the toggle format button's aria-label in the Gradient's input editor.

messages.red String (default: "Red")

Allows customization of the rgb's red input's aria-label in the Gradient's input editor.

messages.green String (default: "Green")

Allows customization of the rgb's green input's aria-label in the Gradient's input editor.

messages.blue String (default: "Blue")

Allows customization of the rgb's blue input's aria-label in the Gradient's input editor.

messages.alpha String (default: "Alpha")

Allows customization of the rgb's alpha input's aria-label in the Gradient's input editor.

messages.hex String (default: "HEX")

Allows customization of the hex input's aria-label in the Gradient's input editor.

In this article