| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class InputColor extends InputGroupComponent |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The Bootstrap Colorpicker plugin configuration parameters. Array with |
||
| 9 | * key => value pairs, where the key should be an existing configuration |
||
| 10 | * property of the plugin. |
||
| 11 | * |
||
| 12 | * @var array |
||
| 13 | */ |
||
| 14 | public $config; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new component instance. |
||
| 18 | * Note this component requires the 'Bootstrap Colorpicker' plugin. |
||
| 19 | * |
||
| 20 | * @return void |
||
| 21 | */ |
||
| 22 | 1 | public function __construct( |
|
| 23 | $name, $id = null, $label = null, $igroupSize = null, $labelClass = null, |
||
| 24 | $fgroupClass = null, $igroupClass = null, $disableFeedback = null, |
||
| 25 | $errorKey = null, $config = [] |
||
| 26 | ) { |
||
| 27 | 1 | parent::__construct( |
|
| 28 | 1 | $name, $id, $label, $igroupSize, $labelClass, $fgroupClass, |
|
| 29 | $igroupClass, $disableFeedback, $errorKey |
||
| 30 | ); |
||
| 31 | |||
| 32 | 1 | $this->config = is_array($config) ? $config : []; |
|
| 33 | 1 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Get the view / contents that represent the component. |
||
| 37 | * |
||
| 38 | * @return \Illuminate\View\View|string |
||
| 39 | */ |
||
| 40 | 1 | public function render() |
|
| 43 | } |
||
| 44 | } |
||
| 45 |