feat(widget-color): add color widget (#4437)

This commit is contained in:
Felix Böttcher
2020-10-25 18:47:35 +01:00
committed by GitHub
parent f3a8eac816
commit fed0e82dd3
12 changed files with 324 additions and 1 deletions

View File

@ -0,0 +1,22 @@
---
label: 'Color'
title: color
---
The color widget translates a color picker to a color string.
- **Name:** `color`
- **UI:** color picker
- **Data type:** string
- **Options:**
- `default`: accepts a string; defaults to an empty string. Sets the default value
- `allowInput`: accepts a boolean, defaults to `false`. Allows manual editing of the color input value
- `enableAlpha`: accepts a boolean, defaults to `false`. Enables Alpha editing
- **Example:**
```yaml
- { label: 'Color', name: 'color', widget: 'color' }
```
- **Example:**
```yaml
- { label: 'Color', name: 'color', widget: 'color', enableAlpha: true, allowInput: true }
```