Skip to content

Commit

Permalink
remove color picker from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm committed Jun 30, 2023
1 parent 35c3dbb commit 82911df
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions 6.x/crud-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -1205,51 +1205,6 @@ Input preview:

<hr>

<a name="color-picker"></a>
### color_picker <span class="badge badge-pill badge-info">PRO</span>

Show a pretty colour picker using [Bootstrap Colorpicker](https://itsjavi.com/bootstrap-colorpicker/).

```php
CRUD::field([ // color_picker
'label' => 'Background Color',
'name' => 'background_color',
'type' => 'color_picker',
'default' => '#000000',

// optional
// Anything your define inside `color_picker_options` will be passed as JS
// to the JavaScript plugin. For more information about the options available
// please see the plugin docs at:
// ### https://itsjavi.com/bootstrap-colorpicker/module-options.html
'color_picker_options' => [
'customClass' => 'custom-class',
'horizontal' => true,
'extensions' => [
[
'name' => 'swatches', // extension name to load
'options' => [ // extension options
'colors' => [
'primary' => '#337ab7',
'success' => '#5cb85c',
'info' => '#5bc0de',
'warning' => '#f0ad4e',
'danger' => '#d9534f'
],
'namesAsValues' => false
]
]
]
]
]);
```

Input preview:

![CRUD Field - color_picker](https://backpackforlaravel.com/uploads/docs-4-2/fields/color_picker.png)

<hr>

<a name="date-range"></a>
### date_range <span class="badge badge-pill badge-info">PRO</span>

Expand Down

0 comments on commit 82911df

Please sign in to comment.