SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.95k stars 1.23k forks source link

sap.m.SegmentedButton: default aggregation (buttons) is deprecated #3931

Closed lhendrik closed 8 months ago

lhendrik commented 9 months ago

OpenUI5 version: >1.28

What is the expected result? The default aggregation should be the commenly used one (to be skipped in XML Views). ` <SegmentedButtonItem key=1' text = 'One'/>

`

What happens instead? The default aggregation is deprecated. To properly use the control the aggregation name has to be provided. `

`

Any other information? (attach screenshot if possible) Could the default aggregation changed to the aggregation "items"? Is this behaviour intended or was it just not changed compareable to other stuff not adapted initially

Regards, lhendrik

NHristov-sap commented 8 months ago

Hi @lhendrik ,

The situation is complicated as the default aggregation is deprecated, but still active. If we change default aggregation to be "items", this will break a lot of existing applications. That's why it is only possible when "buttons" is completely removed.

Best Regards, Nikolay Hristov

lhendrik commented 8 months ago

Hi @NHristov-sap,

thanks for your explanation, now I see your point.

Regards, lhendrik