ActionSelect buttons are associations.
The Buttons of ActionSelect are defined as an association not as an aggregation. These seems a bit off since the buttons are a part of the rendered control. They are not independent from each other like Label and Input. Additionally there seems to be no way to create these associations in XMLViews. Because of that these Buttons must be created in the controller (like its done in the example) what breaks MVC.
I'd suggest to move the buttons from associations to aggregations like its in ActionSheets etc.
I assume you actually mean the sap.m.ActionSelect control. The buttons for the ActionSheet are already defined as an aggregation.
Fixing this issue is already on the backlog. I can't say though whether it will make this sprint.
Oh yeah, sorry, was discussing with my colleague while writing this. I fixed the text & title. Man that was bad.
Hi, asked thomaskoetter if there is any news on this issue Best Regards, Martin
Any updates on this?
Hi @themasch ,
Sorry for the delay. Internally tracked as #1680301366.
Thanks and Kind Regards, Diana, SAPUI5 Dispatcher
Hi @themasch firstly I'm sorry that we closed the issues without giving you any kind of status on the matter, and secondly we've done several discussions on the matter and the final decision was that we'll keep the current behavior for now. As a workaround you can put the buttons in a hidden layout control and pass them to the ActionSelect - that way you can instantiate with pure XML.