reactivesearch
reactivesearch copied to clipboard
Toogle menu + use all field values for data array
Hello,
is there a solution to use all the field values inside the map datas ?
Affected Projects React
Is your feature request related to a problem? Please describe. Use field values for the toogle buttons
Describe the solution you'd like Don't define manually the values array, and use the values of the field.
<ToggleButton componentId="lorem-ipsum" dataField="my-field" title="Lorem ipsum" // Don't define manually the data array. data={[ { label: 'one', value: '1' }, { label: 'two', value: '2' }, ]} // Use the field values. data="my-field" multiSelect={true} />
Thanks.