-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There isn't a direct prop or API in the Paste Combobox to set the option list (dropdown) width independently from the input. The groupTemplate and optionTemplate properties only affect how options and groups are rendered, not the container's width (source). To control the option list width, you can use custom CSS targeting the option list container via its data-paste-element attribute (usually [data-paste-element="COMBOBOX_LISTBOX"] {
width: 400px; /* or any value you need */
} If you're using the CustomizationProvider, you can also pass styles for To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. Sorry, I don't know how to help with that. I did do a search though, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
There isn't a direct prop or API in the Paste Combobox to set the option list (dropdown) width independently from the input. The groupTemplate and optionTemplate properties only affect how options and groups are rendered, not the container's width (source).
To control the option list width, you can use custom CSS targeting the option list container via its data-paste-element attribute (usually
COMBOBOX_LISTBOX
). For example, you could add a style like:If you're using the CustomizationProvider, you can also pass styles for
COMBOBOX_LISTBOX
to customize its width (source). This approach lets you set th…