SAP ui5-component

Source: Internet
Author: User

Learning the component concept of UI5

UI5 There are two kinds of component:

One is faceless component (class:sap.ui.core.Component), which has no user interface and is typically used to obtain data from the backend system.

The other is UI component (Class:sap.ui.core.UIComponent), which are used for screen display, and typically correspond to a screen area or element that can be reused.

Both of the Component reference classes are sap.ui.core.Component and can be extended by inheriting the base class or another Component to extend the functionality of the current Component

When constructing the component, the name is the package name, the module name is the package name +. Component, that is, the name declared by JQuery.sap.declare or extend method in Component.js

A component is a folder, the folder name defines the component name and contains all the resources that component might use, such as CSS view and image

Component.js:component controller, defining properties, collections, events, and methods the Name property that is worn is the package name where the component resides.

Component.json:TODO

All paths under the component folder are relative paths relative to Component.js, not index.html files

A complete component directory is as follows:

SAP ui5-component

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.