cancel
Showing results for 
Search instead for 
Did you mean: 

Info Labels in SAP UI5

tamilselvanm
Participant
0 Kudos

Hi Guys,

I have the requirement to display the info labels.

Kindly help.

Accepted Solutions (0)

Answers (3)

Answers (3)

yogananda
Product and Topic Expert
Product and Topic Expert

tamilselvanm

you can find lot of examples in ui5.sap.com in Samples for Labels with display warning, success, error, information as per your screenshot in different colors

https://ui5.sap.com/#/entity/sap.tnt.InfoLabel

tamilselvanm
Participant
0 Kudos

Hi Yogandha,

I displayed the info labels in the column. But I need to display in row format.

<Table id="idOrgContext" items="{orgContext>/}">

<columns>

<Column id="_IDGenColumn1">

<Label id="_IDGenLabel1" text="{i18n>Area}"></Label>

</Column>

</columns>

<items>

<ColumnListItem id="_IDGenColumnListItem1">

<cells>

<FlexBox direction="Row" alignItems="Start" class="sapUiTinyMarginBottom">

<tnt:InfoLabel id="il9" text="{orgContext>value_text}" colorScheme="{orgContext>ColorScheme}"/>

</FlexBox>

</cells>

</ColumnListItem>

</items>

</Table>

ssrinivas
Advisor
Advisor
0 Kudos

Hello tamilselvanm,

For displaying use sap.m.FlexBox as your container and use aggregation bind the list of items.

Sample Code: Please adjust your path & Model name

<FlexBox items="Your Model Goes here">
<items>
<tnt:InfoLabeltext="{ModelName>value_text}" colorScheme="{ModelName>ColorScheme}"/>
</items>
</FlexBox>
yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos