Upgrade Toolbar SelectOption to accept value attribute
Is your feature request related to a problem?
I need to use a Select input in a Toolbar, but if I use the normal Select component (because it has the functionality I need), the overflow functionality with the popover does not work. ToolbarSelectOption does not accept a value attribute like it should.
Describe the solution you'd like
I would like ToolbarSelectOption to accept a value, not only children.
Describe alternatives you've considered
Using dataset is not ideal
Additional Context
No response
Organization
No response
Declaration
- [x] I’m not disclosing any internal or sensitive information.
Thanks for reporting! I'll forward this issue to our UI5 Web Components Colleagues as the affected component is developed in their repository.
Hello @anichkasam ,
Could you please provide examples (code snippets) of what you are trying to achieve? If possible, kindly share screenshots or design mockups so we can better understand your requirements.
Best Regards, Lidiya
The ToolbarSelect should behave like the Select, when used by apps it is much easier to provide a value (which behaves like a key) to each option and the value of the whole select controls and represents the selected option's value.
Here is an example from the Select test https://github.com/UI5/webcomponents/blob/89bb0dd62322598bd1ea7ce984eaf0618546a6f2/packages/main/cypress/specs/Select.cy.tsx#L7-L20