update example code
This commit is contained in:
@@ -7,8 +7,9 @@ window.app.components = window.app.components || {};
|
|||||||
* @example
|
* @example
|
||||||
* ```js
|
* ```js
|
||||||
* app.components.colorPicker({
|
* app.components.colorPicker({
|
||||||
* value: () => data.color,
|
|
||||||
* predefinedColors: ["#ff0000", "#123456"],
|
* predefinedColors: ["#ff0000", "#123456"],
|
||||||
|
* value: () => data.color,
|
||||||
|
* onchange: (newColor) => data.color = newColor,
|
||||||
* })
|
* })
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user