The descriptor for components contains a subset of the attributes in the descriptor for applications
Attribute |
Comment |
---|---|
id |
Mandatory |
type |
With value component; mandatory |
i18n |
Path relative to component; default is "i18n/i18n.properties" Path back to library is also possible, for example via "../i18n/i18n.properties" |
embeddedBy |
Mandatory, for example, "../" |
title |
Mandatory |
subTitle |
|
description |
|
ach |
|
dataSources |
|
cdsViews |
|
resources |
Mandatory; must have value resources.json as file; it is generated by the library build with this name |
offline |
|
sourceTemplate |
Attribute |
Comment |
---|---|
technology |
With value UI5; mandatory |
deviceTypes |
|
supportedThemes |
Attribute |
Comment |
---|---|
resources |
|
dependencies |
libs components |
models |
|
rootView |
|
handleValidation |
|
config |
|
routing |
|
extends |
component minVersion |
contentDensities |
|
componentName |
Attribute |
Comment |
---|---|
definingRequests |
Example:
#!js sap.ui.core.UIComponent.extend("com.sap.fancylibrary.sub.CompLib.Component", { metadata : { "manifest" : "json", "library" : "com.sap.fancylibrary", ... }