UI5 Component Metadata

user2419908 picture user2419908 · Nov 30, 2014 · Viewed 9.1k times · Source

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",
        }
    }

Answer

Tim Gerlach picture Tim Gerlach · Dec 1, 2014

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.