react-expression-builder icon indicating copy to clipboard operation
react-expression-builder copied to clipboard

Possible to define initialValue and programmatically open dropdown?

Open jmannDev43 opened this issue 5 years ago • 1 comments
trafficstars

Holy moly, this library is freaking awesome! Kudos man, this is seriously cool, with a ton of applications.

Just wondering if it would be possible to be able to pass in an initialValue and programmatically open/re-open the dropdown list?

jmannDev43 avatar Jun 15 '20 17:06 jmannDev43

Hey @jmannDev43, thank you! ✨

Yes, supporting initialValue as a prop is a very common use case and something I've been looking to achieve for a while, but couldn't find time. Feel free to PR if you'd like :)

And yes we could also have an option to programmatically toggle the dropdowns, simple approach could be exporting the list of dropdowns setter functions for the user to play around with.

anshumanv avatar Jun 15 '20 18:06 anshumanv