ResourcePiker Select All?

Not applicable
1715 0 0


I was wondering if is possible to add a select all functionality to the ResourcePicker from Polaris?


Screenshot 2020-11-02 at 13.20.54.png

Shopify Partner
1867 182 805

This is an accepted solution.

Hi @Anonymous 

AppBridge's ResourcePicker won't let you do that IIRC - you can only preselect based on an array of resource IDs.

You'll be better served by Polaris's ResourceList with a dummy promotedBulkActions prop or rethink your UI i.e. before even showing ResourcePicker, you can have multiple options such as Use all resources, Pick specific resources where only the latter opens a ResourcePicker.

Liked this post? You might also like our fantastic upsell apps Candy Rack and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie