question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 API getPublicMethods states it returns

    an 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:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
petyabegovskacommented, Jul 6, 2017

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

0reactions
boghyoncommented, Dec 16, 2022

[…] there was an issue with the jsdoc of get/setSelectedKey methods and it’s also fixed.

Fixed by https://github.com/SAP/openui5/commit/b499f68cab002f3e8e4f7c12cf55d3e199bf066d

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found