Question

I need to build a standard page in sapui5 but I'm not able to find a complete list of the elements available in XML views, so I don't have a full knowledge of what I can build.

Example of XML view:

<attributes>
    <ObjectAttribute text="{OrdenId}" />
</attributes>

Where could I find a list of all elements available in XML views for sapui5? I can't find any specific standard documentation.

Thanks in advance, Hoijof.

Was it helpful?

Solution

there's no list of elements (controls) in XML Views as all SAPUI5 controls can be used in XMLViews. The control's class name is the element name in a tag. Properties are represented as attributes:

<core:View 
controllerName="ui.Main" 
xmlns="sap.ui.commons" 
xmlns:core="sap.ui.core"> 
<ListBox displaySecondaryValues="true">
<items>
    <core:ListItem text="Item1" additionalText="TextTextText"/>
    <core:ListItem text="Item2" additionalText="TextTextText"/>
</items>
</ListBox>
</core:View>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top