-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Product Editor API: Select field block #40550
Comments
Just saw this, it would be great to have a select field available! That would save a ton of development work creating a custom block just for a basic HTML field. |
This field should support multi-select. |
There have also been requests to support searching and dynamic values (retrieved via API calls, for example). Moving this back to prioritization until we nail down the requirements! |
Somewhat related: What about something similar to how Select2 works, which helps tremendously for very long lists because it allows searching the list by typing into the input field? |
Blocking this for now, as we should first complete the work on the updated select component in #38226. |
💯
:100 personally, i need a product/variation selector very much like Select2 currently works. |
Just dropping a comment here to log the fact that the lack of a SELECT-style component pretty much blocks us building support for the new Product Editor into at least one of our Woo extensions. |
Note that we have a basic select block available now (thanks @mdperez86!): We need to take a look at this and see what things still need to be added. |
@mattsherman - Any chance of having it support Select2 (includes Ajax search), or at least being able to assign a class name to it so we can hook up Select2 ourselves? |
@mattsherman this looks like a great start. But to echo @NTShop I think we would also need search and ajax sources... So parity with selectWoo/Select2. |
@mattsherman That's great - thanks! As others have said selectWoo behaviour and ajax hookup would be nice, but this is a good start |
Searching/filtering and dynamic sources will definitely be coming in the future. There are some larger architectural pieces that need to be in place first, but we recognize that these are important needs for WooCommerce developers! |
Description
Similar to the
woocommerce_wp_select
function, we should create a block that provides select field functionality in the new product editor.It should be able to persist information in the product, both as a regular field and in the meta_data array, using the
useProductEntityProp
hook.It should contain at least the following attributes:
Tooltip is the only one left.
Acceptance criteria
The text was updated successfully, but these errors were encountered: