Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 1010

what library to include

$
0
0

I am a novice at SAPUI5. As a first step I added a GridLayout to my code. This required the addition of a library. GridLayout is a member of sap.ui.layout.form. I added this library and copied from the demokit sample

 

var oLayout1 = new sap.ui.layout.form.GridLayout();

 

This gave an error saying GridLayout is not a constructor. The API documentation does not allow for an empty constructor but this is the way the sample code  uses it.

 

A colleague suggested I use library sap.ui.layout. Despite the fact this lacks a GridLayout it worked. Can someone explain why? How would I know to use that library rather than the one that actually contains the GridLayout?

 

Thanks

Cliff


Viewing all articles
Browse latest Browse all 1010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>