Skip to content

Support multiple color selection / array values #81

Description

@Bolkun

First of all, thank you for this awesome package! It is simple, intuitive and works great in the Neos inspector.

I would like to suggest a feature that could make the package even more useful for data visualization use cases.

Currently, the editor stores a single color value as a string. It would be great if the editor could optionally support storing colors as an array and allow selecting multiple colors in one field.

Example use cases include:

  • Chart.js datasets
  • Chart labels and segments
  • Multiple series in bar or line charts
  • Color palettes for widgets and dashboards

For example, something like:

backgroundColors:
  type: array
  ui:
    inspector:
      editor: 'Shel.Neos.ColorPicker/ColorPickerEditor'
      editorOptions:
        multiple: true

which could result in values such as:

[
  "#aed3f2",
  "#276078",
  "#ffea0a",
  "#cdc14a"
]

An optional multiple: true mode would preserve backward compatibility while opening up many new use cases for the editor.

Thank you for considering this enhancement and for maintaining the package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions