UNPKG

@sap/generator-fiori

Version:

Create an SAPUI5 application using SAP Fiori elements or a freestyle approach

19 lines (15 loc) 454 B
// eslint-disable-next-line no-undef sap.ui.define([ "<%= libraryNamespaceURI %>/library", "<%= libraryNamespaceURI %>/Example" ], function(library, Example) { "use strict"; // refer to library types var ExampleColor = library.ExampleColor; // create a new instance of the Example control and // place it into the DOM element with the id "content" new Example({ text: "Example", color: ExampleColor.Highlight }).placeAt("content"); });