reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

Toogle menu + use all field values for data array

Open cb29 opened this issue 5 years ago • 0 comments

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.

cb29 avatar Feb 04 '20 17:02 cb29