* zin: refactor colorpicker.
This commit is contained in:
+7
-9
@@ -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
|
||||
{
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
namespace zin;
|
||||
|
||||
require_once dirname(__DIR__) . DS . 'input' . DS . 'v1.php';
|
||||
|
||||
class colorPicker extends input
|
||||
class colorPicker extends wg
|
||||
{
|
||||
static $defaultProps = array(
|
||||
'type' => 'color'
|
||||
);
|
||||
protected function build()
|
||||
{
|
||||
return zui::colorPicker(inherit($this));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user