Skip to content

Custom Select: transformFunction for custom Selected Options Summary #4187

@db-gspeck

Description

@db-gspeck

Our CustomSelect needs to show the selected Data in the following way:

Image

Could you please add a transformFunction as property of DBCustomSelect?

For example like:

// example implementation
const transform = (options) => {
   return options.map(({value}) => (<span>value </span>)).join(", ");
}

<DBCustomSelect
      multiple
      label="Tage"
      showSelectAll={false}
      options={[{value: "Mo"}, {value: "Di"}, {value: "Mi"}, {value: "Do"}, {value: "Fr"}, {value: "Sa"}, {value: "So"}]}
      transformSelected={(options) => transform(options)}
/>

Metadata

Metadata

Assignees

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions