Polaris-react: Resource Picker show selected items as checked

Created on 20 Jun 2020  路  3Comments  路  Source: Shopify/polaris-react

Feature request summary

The Resource Picker lets you select resources, however it has no way to distinguish which items are already selected.

This request is to add a property called selectedIds where you can pass the Shopify IDs of the products into the component, which shows them as checked when the picker is opened.

When the user closes the picker, the onSelection property works the same, returning any selected products. Should a product be de-checked, this would no longer be in the value returned from onSelection

Rationale

At the moment the Resource Picker shows all products by default, as unchecked. Implementing this change would mean the developer does not have to separately manage the list of selected ID's elsewhere


馃専 Feature requests that are not yet planned will be closed. We then use the issue鈥檚 :+1: upvotes to track and set priorities. See the contribution guidelines for more information.

App Bridge Feature request

Most helpful comment

I like this issue as it touches on mine too. I would love to render items, with some simply being unselectable. So like rendering as preselected, we could have item states.

  • unchecked, selectable
  • unchecked, unselectable
  • checked, selectable

Would be nice.

All 3 comments

馃憢 Thanks for opening your first issue. A contributor should give feedback soon. If you haven鈥檛 already, please check out the contributing guidelines.

I like this issue as it touches on mine too. I would love to render items, with some simply being unselectable. So like rendering as preselected, we could have item states.

  • unchecked, selectable
  • unchecked, unselectable
  • checked, selectable

Would be nice.

馃憢Any change for this to be developed? We're also looking for this feature of the pre-selection of products when the product picker launches.
We would appreciate any update on this.

Was this page helpful?
0 / 5 - 0 ratings