Search code examples
treesapui5

Where do I find information about sap.m.Tree control?


The sap.m.Tree entry in the API reference seems to be incomplete. There are methods on the tree control which are used in official examples but not included in the API reference (e.g. expandToLevel()-method in this example).

I am using this control in my app and need some more information on how to use it. Specifically how to select an item by a given BindingContext or how to get an array of all items (the getItems()-method of the sap.m.ListBase seems to only return an array of the visible items in the tree).

Any hint is appreciated.


Solution

  • As of UI5 version 1.50, The missing documentation parts of APIs, such as expandToLevel and collapseAll, are now publicly visible in the API Reference.