Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UI5 Component Metadata

Tags:

sapui5

I'm looking for a document with the possible metadata property names and config parameters for a component.

There are many documents on the internet with such definition. The question is how I know if the name of a property/parameter setting is a valid name.

metadata : {
    name : "XXXXX",
    version : "1.0",
    includes : [],
    dependencies : {
        libs : ["sap.m", "sap.ui.layout"], 
        components : []
    },

    rootView : "XXXXX",

    config : {
        resourceName : "i18n",
        resourceBundle : "XXXX",
        serviceConfig : {
            name : "main",
            serviceUrl : "XXXXX",
        }
    }
like image 884
user2419908 Avatar asked Nov 30 '14 08:11

user2419908


2 Answers

There is a document available here which describes all possible metadata. Since there is no real assistance during design-time, you have to have a look in the API to check the possible values. If you want to extend it with your own properties/parameters, just make sure that the name is not too generic since the Component can be extended with each new version of UI5.

like image 72
Tim Gerlach Avatar answered Oct 16 '22 13:10

Tim Gerlach


The approach of defining component metadata in the component itself has been superseded by an approach using a manifest file. You will find all available properties in the documentation .

like image 2
matbtt Avatar answered Oct 16 '22 14:10

matbtt