sap.m.SegmentedButton get/setSelectedKey and createButton
See original GitHub issue-
The API reference of SegmentedButton doesn’t mention its two public methods getSelectedKey and setSelectedKey. I’d like to know if they are intentionally left out or just missing. Aren’t we supposed to use them directly?
-
Here is a screenshot of the public methods reported by its metadata (taken from Explored). The two above mentioned methods are also included there. But the metadata doesn’t include
createButton
although it is mentioned in the API reference. The APIgetPublicMethods
states it returnsan array with the names of the public methods declared by the described class.
Is
createButton
not a public method declared by SegmentedButton?
Sorry if I mixed two issues into one. I was not sure if they are real issues at all.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
sap.m.SegmentedButton - API Reference - SAPUI5 SDK
A horizontal control made of multiple buttons, which can display a title or an image. Overview. The SegmentedButton shows a group of buttons....
Read more >Error using sap.m.SegmentedButton in sap.ui.table.Table
Hey, I'm trying to place SegmentedButtons in a SAP mobile table via DataBinding. Everything is fine until I click on the SegmentedButton.
Read more >how to use Segmented Buttons instead of Icon Tabbar in ...
Hi Gurus, We want to use Segmented Buttons and achieve the functionalities of Icon Tabbar. So, Each buttons of the segment would act...
Read more >segmentedButton query - SAP Community
Hi All, I am working on a requirement in which i have to show 'left' 'center' and 'right' aligned buttons.
Read more >sap.m.SegmentedButton with both Label and Icon
Hi there, as far as I know it is not supported to use both a label and an icon for a segmented button....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @boghyon,
The new Demo Kit shows the auto-generated methods. You can see a preview here: https://openui5nightly.hana.ondemand.com/ In addition, there was an issue with the jsdoc of get/setSelectedKey methods and it’s also fixed.
Best Regards, Petya
Fixed by https://github.com/SAP/openui5/commit/b499f68cab002f3e8e4f7c12cf55d3e199bf066d