Select with creatable: will this be available in Paste? #615
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @elainelylee - you might be able to accomplish something similar to this with combobox, but I'll need to get the rest of the team involved in this convo because I'm not certain. We'll report back soon! |
Beta Was this translation helpful? Give feedback.
-
Hey @elainelylee - an update to our combobox component will be merged in today or tomorrow that will allow you to accomplish this. The options in a combobox are entirely customizable. We don't have the symbols added to Sketch quite yet (it will likely be added in our next sprint, starting today, or the following sprint), but in the meantime, you can just use the select symbol and the menu symbol to compose this in your designs. When you get to the build stage for this, this is how your engineers can do it: add a “create” option at the end of the items array, use the option template to render the “create” based on the item, and—using the state of the input value—you can append what you’ve typed to the "create" option. |
Beta Was this translation helpful? Give feedback.
Hey @elainelylee - an update to our combobox component will be merged in today or tomorrow that will allow you to accomplish this. The options in a combobox are entirely customizable. We don't have the symbols added to Sketch quite yet (it will likely be added in our next sprint, starting today, or the following sprint), but in the meantime, you can just use the select symbol and the menu symbol to compose this in your designs.
When you get to the build stage for this, this is how your engineers can do it: add a “create” option at the end of the items array, use the option template to render the “create” based on the item, and—using the state of the input value—you can append what you’ve …