| 1 | <?php |
||
| 9 | class ColorPicker extends AbstractField |
||
| 10 | { |
||
| 11 | use Orderable; |
||
| 12 | use Placeholder; |
||
| 13 | |||
| 14 | const HEX = 'hex'; |
||
| 15 | const RGBA = 'rgba'; |
||
| 16 | |||
| 17 | protected $type = self::HEX; |
||
| 18 | |||
| 19 | 1 | public function value(Request $request) |
|
| 20 | { |
||
| 21 | 1 | return (string) parent::value($request); |
|
| 22 | } |
||
| 23 | |||
| 24 | 2 | public function type($type) |
|
| 38 | |||
| 39 | 3 | public function getType() |
|
| 43 | |||
| 44 | 1 | public function getListView($model) |
|
| 51 | |||
| 52 | 1 | public function getEditFormView($model) |
|
| 61 | |||
| 62 | 1 | public function getCreateFormView() |
|
| 68 | } |
||
| 69 |