ResourcePiker Select All?

Solved
Highlighted
Tourist
4 0 1

Hi

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

0 Likes
Highlighted
Shopify Partner
1866 181 747

This is an accepted solution.

Hi @machu 

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
1 Like