diff --git a/lib/zin/func.php b/lib/zin/func.php index e14f51797a..b2f27c8736 100644 --- a/lib/zin/func.php +++ b/lib/zin/func.php @@ -369,15 +369,13 @@ function radioList(): radioList /** * Color picker widget which extends input. * - * string name - * ?string id - * ?string class - * ?string value - * ?bool required - * ?string placeholder - * ?bool autofocus - * ?bool disabled - * ?bool autocomplete=false + * ?string heading + * ?string icon + * ?bool closeBtn=true + * ?string syncText + * ?string syncColor + * ?string syncBackground + * ?string syncBorder */ function colorPicker(): colorPicker { diff --git a/lib/zin/wg/colorpicker/v1.php b/lib/zin/wg/colorpicker/v1.php index 26c5df6799..d4e818dc7c 100644 --- a/lib/zin/wg/colorpicker/v1.php +++ b/lib/zin/wg/colorpicker/v1.php @@ -1,11 +1,10 @@ 'color' - ); + protected function build() + { + return zui::colorPicker(inherit($this)); + } }