Skip to content

Commit c341035

Browse files
committed
feat(editor): add ColorPicker columns option in the markdown #6605
1 parent 07e4b6d commit c341035

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/api/javascript/ui/editor.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,23 @@ Specifies the [color palette](/api/javascript/ui/colorpicker#configuration-palet
23532353
});
23542354
</script>
23552355

2356+
### tools.columns `Number`
2357+
2358+
Specifies the [colors columns](/api/javascript/ui/colorpicker#configuration-columns) for "foreColor" and "backColor" tools when list of colors are defined.
2359+
2360+
#### Example - "websafe" palette
2361+
2362+
<textarea id="editor"></textarea>
2363+
<script>
2364+
$("#editor").kendoEditor({
2365+
tools: [{
2366+
name: "foreColor",
2367+
palette: ["#f0d0c9", "#e2a293", "#d4735e", "#65281a"],
2368+
columns: 2
2369+
}]
2370+
});
2371+
</script>
2372+
23562373
### tools.template `String`
23572374

23582375
The kendo template that will be used for rendering the given tool.

0 commit comments

Comments
 (0)