-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.php
29 lines (28 loc) · 861 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
Kirby::plugin('timoetting/colorpicker', [
'fields' => [
'color' => [
'props' => [
'presets' => function ($presets = null) {
return Yaml::decode($presets);
},
'editableAlpha' => function ($editableAlpha = true) {
return $editableAlpha;
},
'default' => function ($default = null) {
return $default;
},
'value' => function ($value = "#FFFFFF") {
return $this->value ?? $this->default ?? $value;
}
],
],
'textext' => [
'props' => [
'value' => function ($value = null) {
return Yaml::decode($value);
}
]
]
]
]);