Show TOC

ViewsLocate this document in the navigation structure

The view in the Model View Controller concept is responsible for defining and rendering the UI. SAPUI5 supports predefined view types.

Although XML and JSON notation has been introduced for SAPUI5 UI controls, the Model View Controller concept is also supported to facilitate traditional programmatic UI constructions.

The following predefined view types are available:

  • XML view. The user interface is defined in an XML file or string.

    Note The XMLView type supports a mix of XML and plain HTML.
  • JSON view. The user interface is defined in a file or string in JSON format.

  • JS view. The user interface is constructed in a traditional manner.

  • HTML view. The user interface is defined in an HTML file or string.

These view types are offered for selection as view options in the application creation wizard. If you use SAPUI5 application development tools, you can also plug in other view types. For defining other or custom view types, you extend the base class sap.ui.core.mvc.View.

API Reference