Skip to content

Commit

Permalink
predefined colors
Browse files Browse the repository at this point in the history
  • Loading branch information
eddy8 committed Dec 8, 2023
1 parent e60fb0d commit e2fee43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/views/admin/content/add.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ function addLoadEvent(func) {
colorpicker.render({
elem: '#color-picker-{{ $field->name }}'
,color: '{{ $model->{$field->name} ?? $field->form_default_value }}'
,predefine: true
,colors:['#FFB800','#FF5722','#01AAED','#2F4056']
,done: function(color){
$('#{{ $field->name }}').val(color);
}
Expand Down

0 comments on commit e2fee43

Please sign in to comment.