filestack / filestack-react

Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
https://www.filestack.com
MIT License
164 stars 40 forks source link

Is there a way to show the dropPane without the pick button? #61

Closed trufa closed 5 years ago

trufa commented 5 years ago

When I choose the web option for the dropPane then the dropPane is showed without any button. With react I only seem to be able to do it with a click on the button first. Is there any way around this?

Thanks!

AndrzejSala commented 5 years ago

@trufa Now, the component create <button> or <a> element and picker.open() is invoked when click on it. We need to redefine logic of this component a little bit to made it possibly.

trufa commented 5 years ago

@AndrzejSala thanks for the answer! Is there any roadmap for that or is it not a planned feature?

AndrzejSala commented 5 years ago

@trufa I can't give you an exact date, but we are going to standardize all picker display modes to be useful in this react wrapper in May.

AndrzejSala commented 5 years ago

@trufa Happy to announce that yesterday we released a new version.

Get the newest and try this one:

<ReactFilestack
  apikey={YOUR_API_KEY}
  action='pick'
  actionOptions={{
    displayMode: 'dropPane'
  }}
  container={HTML_NODE_ID}
  componentDisplayMode={{
    type: 'immediate'
  }}/>