Jpsy
Jpsy

Reputation: 20852

Replacement for deprecated SAP UI5 Control "TextView"

What is the recommended replacement for the SAP UI5 Control "TextView", which is deprecated since 1.38?

I found this outdated Control while working through the SAPUI5 Walkthrough tutorial and following a "related information" link that is still using on the old TextView Control.

There is no replacement info given in the API Reference of TextView: https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.commons.TextView

Upvotes: 0

Views: 859

Answers (1)

Jaro
Jaro

Reputation: 1754

You can use sap.m.Text instead. Api.

View example:

<mvc:View
    xmlns:l="sap.ui.layout"
    xmlns:mvc="sap.ui.core.mvc"
    xmlns="sap.m">
    <VBox class="sapUiSmallMargin">
        <Text text="Lorem ipsum dolor st amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat" />
    </VBox>
</mvc:View>

Upvotes: 2

Related Questions