plotly / react-chart-editor

Customizable React-based editor panel for Plotly charts
https://plotly.github.io/react-chart-editor/
MIT License
499 stars 101 forks source link

Custom options in <FontSelector #984

Open as4ashish opened 4 years ago

as4ashish commented 4 years ago

How can i give custom options in <FontSelector component, everytime i give custom font options, It is overwritten by its three default Font options.

My component

<FontSelector label="Typeface" options={[ { label: 'Open Sans', value: '"Open Sans"' }, { label: 'verdana', value: 'verdana' }, { label: 'sans-serif', value: 'sans-serif' }, { label: 'New-Font', value: 'Helvetica Neue' } ]} value="sans-serif" attr="textfont.family" />

But i get different options in dropdown image